/* ============================================================================ * Copyright (c) Cloud Annotations * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * ========================================================================== */ import React from "react"; import ExecutionEnvironment from "@docusaurus/ExecutionEnvironment"; import DocItem from "@theme-original/DocItem"; // @ts-ignore import type { Props } from "@theme/ApiItem"; import DocPaginator from "@theme/DocPaginator"; import clsx from "clsx"; import styles from "./styles.module.css"; let ApiDemoPanel = (_: { item: any }) =>
; if (ExecutionEnvironment.canUseDOM) { ApiDemoPanel = require("@theme/ApiDemoPanel").default; } export default function ApiItem(props: typeof Props): JSX.Element { let api = props.content.frontMatter.api ?? false; if (!api) { return ( <>