import React, { PropsWithChildren } from "react"; import Link from "@docusaurus/Link"; import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import Logo from "@theme/Logo"; export function Hero(): JSX.Element { const { siteConfig } = useDocusaurusContext(); return (

None Bot

{siteConfig.tagline}

开始使用
); } export type Feature = { readonly title: string; readonly tagline?: string; readonly description?: string; readonly annotaion?: string; }; export function HeroFeature(props: PropsWithChildren): JSX.Element { const { title, tagline, description, annotaion, children } = props; return ( <>

{tagline}

{title}

{description}

{children}

{annotaion}

); } export function HeroFeatureSingle( props: PropsWithChildren ): JSX.Element { return (
); } export function HeroFeatureDouble( props: PropsWithChildren<{ features: [Feature, Feature] }> ): JSX.Element { const { features: [feature1, feature2], children, } = props; let children1, children2; if (Array.isArray(children) && children.length === 2) { [children1, children2] = children; } return (
); }