import { ComponentChildren } from "preact"; import Icon from "./Icon"; interface FormListOpts { children: ComponentChildren; onSelect?: (value: string) => void; } export default function FormList({ children, onSelect }: FormListOpts) { return ( ); } interface FormListItemOpts { children: ComponentChildren; icon?: string; value?: string; } export function FormListItem({ children, icon, value }: FormListItemOpts) { return (   {children} ); } interface FormListHeaderOpts { text: string; } export function FormListHeader({ text }: FormListHeaderOpts) { return (
  • {text}
  • ) }