import { linkClasses } from 'shared/components/navigation/primary.js'
import { Li } from 'shared/components/workbench/menu'
import { useTranslation } from 'next-i18next'
const SumButton = props => (
)
const SumDiv = (props) => (
{props.children}
)
const Option = props => {
const { t } = useTranslation([`o_${props.pattern.config.name}`, 'workbench'])
const active = (
props.gist.sample?.type === 'option' &&
props.gist.sample?.option === props.option
)
return (
props.updateGist(
['sample'],
{
type: 'option',
option: props.option
}
)}>
{active ? • : °}
{t(`o_${props.pattern.config.name}:${props.option}.t`)}
)
}
export default Option