()
| 4 | import IconMenu from "@theme/Icon/Menu"; |
| 5 | |
| 6 | export default function MobileSidebarToggle(): JSX.Element { |
| 7 | const { toggle, shown } = useNavbarMobileSidebar(); |
| 8 | return ( |
| 9 | <button |
| 10 | onClick={toggle} |
| 11 | aria-label={translate({ |
| 12 | id: "theme.docs.sidebar.toggleSidebarButtonAriaLabel", |
| 13 | message: "Toggle navigation bar", |
| 14 | description: |
| 15 | "The ARIA label for hamburger menu button of mobile navigation", |
| 16 | })} |
| 17 | aria-expanded={shown} |
| 18 | className="navbar__toggle clean-btn" |
| 19 | type="button" |
| 20 | > |
| 21 | <IconMenu /> |
| 22 | </button> |
| 23 | ); |
| 24 | } |
nothing calls this directly
no outgoing calls
no test coverage detected