import React from "react"; import queryString from "query-string"; import { Toaster } from "react-hot-toast"; import Loader, { entries } from "../Loader"; import styles from "./index.scoped.less"; import DemoList from "./DemoList"; import type { IOverviewProps } from "@alicloud/console-toolkit-docs-shared"; declare const window: Window; const entryKeys = entries.map(({ key }) => key); const Overview: React.FC = ({ entryKey, onEntryKeyChange, ...restLoaderProps }) => { const { loadOpts } = restLoaderProps as any; const isDemoOnly = Boolean(queryString.parseUrl(window.location.href)?.query?.demoOnly); return (
{ isDemoOnly && entryKey ? ( ) : (

{entryKey && (
)}
) }
); }; export default Overview;