()
| 6 | import NavbarLogo from "@theme/Navbar/Logo"; |
| 7 | |
| 8 | function CloseButton() { |
| 9 | const mobileSidebar = useNavbarMobileSidebar(); |
| 10 | return ( |
| 11 | <button |
| 12 | type="button" |
| 13 | aria-label={translate({ |
| 14 | id: "theme.docs.sidebar.closeSidebarButtonAriaLabel", |
| 15 | message: "Close navigation bar", |
| 16 | description: "The ARIA label for close button of mobile sidebar", |
| 17 | })} |
| 18 | className="clean-btn navbar-sidebar__close" |
| 19 | onClick={() => mobileSidebar.toggle()} |
| 20 | > |
| 21 | <IconClose color="var(--ifm-color-emphasis-600)" /> |
| 22 | </button> |
| 23 | ); |
| 24 | } |
| 25 | |
| 26 | export default function NavbarMobileSidebarHeader(): JSX.Element { |
| 27 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected