diff --git a/src/theme/DocItem/TOC/Desktop/index.js b/src/theme/DocItem/TOC/Desktop/index.js index 628f7c3eaae..bf7d4daedaa 100644 --- a/src/theme/DocItem/TOC/Desktop/index.js +++ b/src/theme/DocItem/TOC/Desktop/index.js @@ -3,12 +3,18 @@ import {ThemeClassNames} from '@docusaurus/theme-common'; import {useDoc} from '@docusaurus/plugin-content-docs/client'; import TOC from '@theme/TOC'; import clsx from "clsx"; +import IconClose from '@theme/Icon/Close'; import styles from './styles.module.css' import Feedback from '../../../../components/Feedback'; export default function DocItemTOCDesktop() { const {toc, frontMatter} = useDoc(); - + const [isClosed, setClosed] = useState(() => { + if (typeof window !== 'undefined') { + return window.sessionStorage.getItem('doc-cloud-card-banner') === 'closed'; + } + return false; + }); return (
Separation of storage and compute, automatic scaling, built-in SQL console, and lots more. $300 in free credits when signing up.
- Try it for Free -Separation of storage and compute, automatic scaling, built-in SQL console, and lots more. $300 in free credits when signing up.
+ Try it for Free +