import type { ComponentPropsWithRef } from "react"; import { cn } from "../../lib/utils"; type Props = Omit, "onChange" | "value" | "name"> & { label: string; name: string; active: boolean; value: string; onActive: () => void; onChange: (value: string) => void; }; /** Controlled custom answer with the same input layout as the shared legacy questionnaire. */ export function QuestionInput({ label, name, active, value, disabled, className, onActive, onChange, ...props }: Props) { return (