+ {mark} + {title} +
+ {children} ++ {question.prompt} +
++ {question === undefined ? text.keys.review : text.keys[question.kind]} +
+ > + ); +} + export function QuestionsCard({ id, ask, state, + layout, }: { /** The call's id, so each card's field ids are its own. */ id: string; ask: AskQuestions; state: QuestionsState; + layout: QuestionsLayout; }) { const [answers, setAnswers] = useState+ {text.notSent} +
+ ) : undefined; + const gate = { + kind: "form" as const, + title: text.title(ask.questions.length), + }; + if (layout === "steps") + return ( +- {text.notSent} -
- ) : null} + {notSent} > } >