import { LunaticComponents } from '../LunaticComponents'; import type { LunaticComponentProps } from '../type'; import { slottableComponent } from '../shared/HOC/slottableComponent'; import { Declarations } from '../shared/Declarations/Declarations'; import type { PropsWithChildren } from 'react'; /** * Surround a question giving additional context with label / description / declarations */ export const Question = (props: LunaticComponentProps<'Question'>) => { const { components, propsTransformer } = props; return ( ); }; type CustomProps = PropsWithChildren>; export const CustomQuestion = slottableComponent( 'Question', (props) => { const { id, description, declarations, label, children } = props; return (

{label}

{description}

{children}
); } );