export type FaqInfoItem = { topic?: string; title: string; text: string };
export type FaqTopicChip = {
  key: string;
  label: string;
  icon: string;
  catchAll?: boolean;
  index?: number;
};

export type Component = {
  id?: string;
  style?: string;
  /** From HTML this is a JSON string; `$effect` parses it into `FaqInfoItem[]`. */
  info?: string | FaqInfoItem[];
  /** From HTML this is a JSON string; `$effect` parses it into `FaqTopicChip[]` and assigns `index`. */
  topics?: string | FaqTopicChip[];
  filter?: string;
};

export type Events = {};
