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: 'export', 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') }, ] return (
{t('view')}
) } export default View