import { Popout } from 'shared/components/popout.mjs' import { Highlight } from './highlight.mjs' import { YouTube } from './youtube.mjs' //import { Figure } from './figure.mjs' import { ReadMore } from './read-more.mjs' import { Tab, Tabs } from './tabs.mjs' import { TabbedExample as Example } from './tabbed-example.mjs' import { HttpMethod, HttpStatusCode } from './http.mjs' import { ControlTip } from '../control/tip.mjs' import { Legend } from './legend.mjs' import { DocsTitle, DocsLink } from './docs-helpers.mjs' import { V3Wip } from '../v3-wip.mjs' const WipWithReadMore = (props) => ( <> ) export const components = (site = 'org') => { const base = { // Custom components Comment: (props) => , Fixme: (props) => , Link: (props) => , Note: (props) => , ReadMore: (props) => , Related: (props) => , Tip: (props) => , Tldr: (props) => , Warning: (props) => , YouTube, pre: (props) => , // This Figure component causes hydration errors //img: Figure, table: (props) => ( {props.children}
), Tab, Tabs, ControlTip, Example, DocsTitle: (props) => , DocsLink: (props) => , } return site === 'dev' ? { ...base, Method: HttpMethod, StatusCode: HttpStatusCode, } : { ...base, PatternDocs: WipWithReadMore, PatternOptions: WipWithReadMore, PatternMeasurements: WipWithReadMore, Gauge: V3Wip, Legend, } }