import type { ReactNode } from "react"; import Stack from "@moduletrace/twui/layout/Stack"; import H2 from "@moduletrace/twui/layout/H2"; import Span from "@moduletrace/twui/layout/Span"; type Props = { title: string; description?: ReactNode; children: ReactNode; /** * An anchor, so a link can open the page at this block. */ id?: string; }; /** * One block of settings: what it is on the left, the controls on the right. * Stacks below 768px. Blocks are separated by hairlines, never cards. */ export default function SettingsGroup({ title, description, children, id }: Props) { return (

{title}

{description ? ( {description} ) : null}
{children}
); }