import type { WidgetProps } from "./types"; import { ReservedControls } from "./ReservedControls"; import { IntroBody } from "./IntroBody"; export function SelectWidget({ descriptor, onRespond }: WidgetProps) { return (
{(descriptor.title || descriptor.intro) && (
{descriptor.title && (

{descriptor.title}

)} {descriptor.intro && }
)}
{descriptor.options?.map((o) => ( ))}
onRespond({ id: descriptor.id, control: c, ...(t !== undefined ? { text: t } : {}) })} />
); }