import { html, svg, nothing } from '@webjsdev/core'; import { unsafeHTML } from '@webjsdev/core/directives'; import { cn } from '#lib/utils/cn.ts'; import { buttonClass } from '#modules/ui/components/button.ts'; import { sheetDescriptionClass, sheetHeaderClass, sheetTitleClass } from '#modules/ui/components/sheet.ts'; import { renderChart, type RenderedChart } from '#modules/ui/queries/charts.server.ts'; import { styleLinks } from '#lib/ui/style-links.ts'; import { uiPageHeader, pageNav } from '#lib/ui/ui-page-header.ts'; import { codeFigure } from '#lib/ui/docs/code.ts'; /** * The /ui/charts pages, shadcn/ui's apps/v4/app/(app)/charts (#1666): the * layout's page header and chart-type nav (components/charts-nav.tsx), and * one ChartDisplay per chart (components/chart-display.tsx, chart-toolbar.tsx * and chart-code-viewer.tsx). * * shadcn shows each chart in an iframe of /view/