import { MenuItem } from 'shared/components/workbench/menus/shared/menu-item.mjs'
import { WorkbenchMenu } from 'shared/components/workbench/menus/shared/index.mjs'
import {
emojis,
ns as designMenuNs,
} from 'shared/components/workbench/menus/design-options/index.mjs'
import { OptionsIcon } from 'shared/components/icons.mjs'
import { optionsMenuStructure } from 'shared/utils.mjs'
export const ns = ['test-view', ...designMenuNs]
const SampleInput = ({ changed, name, t, updateFunc, type }) => {
return (
<>
{t([`${name}.d`, ''])}
>
)
}
export const SampleItem = ({ name, passProps, ...rest }) => {
return (
)
}
export const TestOptions = ({
design,
patternConfig,
settings,
update,
language,
account,
isFirst = true,
DynamicDocs = false,
}) => {
const menuNs = [`o_${design}`, ...ns]
const optionsMenu = optionsMenuStructure(patternConfig.options)
const getDocsPath = (option) =>
`designs/${design}/options${option ? '/' + option.toLowerCase() : ''}`
return (
{
if (value) update.settings(['sample'], { type: 'option', option: path[0] })
else update.settings(['sample'])
},
}}
/>
)
}