/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, {useState} from 'react'; import {useDocsSidebar} from '@docusaurus/theme-common/internal'; import BackToTopButton from '@theme/BackToTopButton'; import DocRootLayoutSidebar from '@theme/DocRoot/Layout/Sidebar'; import DocRootLayoutMain from '@theme/DocRoot/Layout/Main'; import styles from './styles.module.css'; export default function DocRootLayout({children}) { const sidebar = useDocsSidebar(); const [hiddenSidebarContainer, setHiddenSidebarContainer] = useState(false); return (
{sidebar && ( )} {children}
); }