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