import { XCircle } from 'lucide-react' import { FC, PropsWithChildren, useState } from 'react' import { Badge } from '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.isEnum && ( <> {props.isOptional ? ( Optional ) : ( Required )} {props.type ?? 'no type'} )}
{props.description && (

{props.description}

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