Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
748 B ยท 31 lines
TSX
at incident-api
1234567891011121314151617181920212223242526272829303132import { createElement } from "react";
import { slugify } from "./heading";
export function Details({ children, summary, open = false, headingLevel,}: { children: React.ReactNode; summary: string; open?: boolean; /** * Renders the summary as a real heading. Set it where the block is a section * of the page outline โ an FAQ entry under an `h2` โ so crawlers see the * nesting. Styling is neutralised in `globals.css`; the look is unchanged. */ headingLevel?: 2 | 3 | 4;}) { return ( <details id={slugify(summary)} open={open}> <summary> {headingLevel ? createElement(`h${headingLevel}`, null, summary) : summary} </summary> {children} </details> );}