import MenuIcon from 'shared/components/icons/menu.js' import OptionsIcon from 'shared/components/icons/options.js' import { linkClasses, Chevron } from 'shared/components/navigation/primary.js' import { useTranslation } from 'next-i18next' const Modes = props => { const { t } = useTranslation(['app']) const entries = [ { name: 'measurements', title: t('measurements'), onClick: () => props.setMode('measurements') }, { name: 'draft', title: t('draftPattern', { pattern: props.pattern.config.name }), onClick: () => props.setMode('draft') }, { name: 'test', title: t('testPattern', { pattern: props.pattern.config.name }), onClick: () => props.setMode('test') }, { name: 'export', title: t('export'), onClick: () => props.setMode('export') }, ] return (
{t('modes')}
) } export default Modes