import { Accessor, Index, JSX } from "solid-js"; import css from "./list.module.css"; interface ListProps { label: string; items: T[]; class?: string; children: (item: Accessor) => JSX.Element; } export function List(props: ListProps) { return (
{props.label} {props.items.length} result(s)
    {(item) =>
  • {props.children(item)}
  • }
); }