import { type Component, For } from "solid-js"; import type { TypeTOC, ConfigTOC } from "../types"; import { LoadingSpinner, Tag, RoundBrackets, PowerCord, FourDiamonds, } from "@icons"; import { Heading } from "./Heading"; export const Table: Component<{ title?: string; typeTOC?: TypeTOC; configTOC?: ConfigTOC[]; }> = props => { const { title, typeTOC, configTOC } = props; if (configTOC) { return (
{title && <>

{title}


} {heading => ( )}
); } if (!typeTOC) { return ; } return ( ); };