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<{ typeTOC?: TypeTOC; configTOC?: ConfigTOC[]; }> = props => { const { typeTOC, configTOC } = props; if (configTOC) { return (

Contents

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