import { FunctionComponent, toChildArray } from "preact"; export const OL: FunctionComponent<{ color?: string }> = (props) => { const childs = toChildArray(props.children); props.color = props.color || "bg-sky"; return (
    {childs.map((c, i) => (
  1. {i + 1} {i + 1}
    {c}
  2. ))}
); };