/** * 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, {type ComponentProps, type ReactNode} from 'react'; import clsx from 'clsx'; import {ThemeClassNames, useThemeConfig} from '@docusaurus/theme-common'; import { useHideableNavbar, useNavbarMobileSidebar, } from '@docusaurus/theme-common/internal'; import {translate} from '@docusaurus/Translate'; import NavbarMobileSidebar from '@theme/Navbar/MobileSidebar'; import type {Props} from '@theme/Navbar/Layout'; import styles from './styles.module.css'; function NavbarBackdrop(props: ComponentProps<'div'>) { return (
); } export default function NavbarLayout({children}: Props): ReactNode { const { navbar: {hideOnScroll, style}, } = useThemeConfig(); const mobileSidebar = useNavbarMobileSidebar(); const {navbarRef, isNavbarVisible} = useHideableNavbar(hideOnScroll); return ( ); }