message: Refacto du type pour les radio block
diff: @@ -65,22 +65,11 @@ export const binaryQuestion = [
  { value: 'non', label: 'Non' },
  ] as const
  -interface RuleWithMetadata<T> extends Rule {
  - metadata: T
  -}
  -
  -const isMetadata = <T extends RuleWithMetadata<unknown>>(
  - rule: Rule
  -): rule is T => 'metadata' in rule
  -
  // This function takes the unknown rule and finds which React component should
  // be displayed to get a user input through successive if statements
  // That's not great, but we won't invest more time until we have more diverse
  // input components and a better type system.
  -export default function RuleInput<
  - Names extends string = DottedName,
  - Metadata extends { component?: string } = { component?: string }
  ->({
  +export default function RuleInput<Names extends string = DottedName>({
  dottedName,
  onChange,
  showSuggestions = true,
  @@ -116,10 +105,7 @@ export default function RuleInput<
  />
  )
  }
  - if (
  - isMetadata<RuleWithMetadata<Metadata>>(rule.rawNode) &&
  - rule.rawNode.metadata.component === 'ToggleRadioBlock'
  - ) {
  + if (rule.rawNode.type === 'radio block') {
  return (
  <MultipleAnswerInput
  {...commonProps}
  