import MenuIcon from 'shared/components/icons/menu.js' import { linkClasses, Chevron } from 'shared/components/navigation/primary.js' import { useTranslation } from 'next-i18next' const View = props => { const { t } = useTranslation(['app']) const entries = [ { name: 'measurements', title: t('measurements'), onClick: () => props.updateGist(['_state', 'view'], 'measurements') }, { name: 'draft', title: t('draftPattern', { pattern: props.pattern.config.name }), onClick: () => props.updateGist(['_state', 'view'], 'draft') }, { name: 'test', title: t('testPattern', { pattern: props.pattern.config.name }), onClick: () => props.updateGist(['_state', 'view'], 'test') }, { name: 'printingLayout', title: t('layoutThing', { thing: props.pattern.config.name }) + ': ' + t('forPrinting'), onClick: () => props.updateGist(['_state', 'view'], 'printingLayout') }, { name: 'cuttingLayout', title: t('layoutThing', { thing: props.pattern.config.name }) + ': ' + t('forCutting'), onClick: () => props.updateGist(['_state', 'view'], 'cuttingLayout') }, { name: 'export', title: t('exportThing', { thing: props.pattern.config.name }), title: t('export'), onClick: () => props.updateGist(['_state', 'view'], 'export') }, { name: 'events', title: t('events'), onClick: () => props.updateGist(['_state', 'view'], 'events') }, { name: 'yaml', title: t('YAML'), onClick: () => props.updateGist(['_state', 'view'], 'yaml') }, { name: 'json', title: t('JSON'), onClick: () => props.updateGist(['_state', 'view'], 'json') }, { name: 'edit', title: t('editThing', { thing: 'YAML' }), onClick: () => props.updateGist(['_state', 'view'], 'edit') }, ] return (
{t('view')}
) } export default View