import { FC, PropsWithChildren, useState } from 'react' import { IconXCircle } from '~/../../packages/ui' interface IOptions { name?: string } type IOption = any type OptionsSubComponents = { Option: IOption } const Options: FC> & OptionsSubComponents = (props) => { const [open, setOpen] = useState(false) return (
{props.children}
) } const Option: FC = (props) => { return (
{props.name ?? 'no-name'} {props.isOptional ? (
Optional
) : (
REQUIRED
)}
{props.type ?? 'no type'}
{props.description && (

{props.description}

)} {props.children}
) } Options.Option = Option export default Options