import React from 'react'; import PropTypes from 'prop-types'; import detect from 'browser-detect'; import { useTranslation } from 'react-i18next'; import Typography from '../Typography'; import { Icons } from '@ohif/ui-next'; const Link = ({ href, children, showIcon = false }) => { return ( {children} {!!showIcon && } ); }; const Row = ({ title, value, link }) => { return (
{title} {link ? ( {value} ) : ( {value} )}
); }; const AboutModal = ({ buildNumber, versionNumber, commitHash }) => { const { os, version, name } = detect(); const browser = `${name[0].toUpperCase()}${name.substr(1)} ${version}`; const { t } = useTranslation('AboutModal'); const renderRowTitle = title => (
{title}
); return (
{renderRowTitle(t('Important links'))}
{t('Visit the forum')} {t('Report an issue')} {t('More details')}
{renderRowTitle(t('Version information'))}
{/* */} {buildNumber && ( )} {commitHash && ( )}
); }; AboutModal.propTypes = { buildNumber: PropTypes.string, versionNumber: PropTypes.string, }; export default AboutModal;