Spaces:
Configuration error
Configuration error
Download web/apps/labelstudio/src/components/SidebarMenu/SidebarMenu.jsx from bisalsaha/lebel-studio: direct link, hf CLI and curl.
- Browser
- Download file 583 Bytes
-
https://huggingface.co/spaces/bisalsaha/lebel-studio/resolve/main/web/apps/labelstudio/src/components/SidebarMenu/SidebarMenu.jsx
- Command line
-
hf download hf://spaces/bisalsaha/lebel-studio/web/apps/labelstudio/src/components/SidebarMenu/SidebarMenu.jsx
-
curl -L -o SidebarMenu.jsx https://huggingface.co/spaces/bisalsaha/lebel-studio/resolve/main/web/apps/labelstudio/src/components/SidebarMenu/SidebarMenu.jsx
583 Bytes
| import { cn } from "../../utils/bem"; | |
| import { Menu } from "../Menu/Menu"; | |
| import "./SidebarMenu.prefix.css"; | |
| export const SidebarMenu = ({ children, menu, path, menuItems }) => { | |
| const rootClass = cn("sidebar-menu"); | |
| return ( | |
| <div className={rootClass}> | |
| {menuItems && menuItems.length > 1 ? ( | |
| <div className={rootClass.elem("navigation").toClassName()}> | |
| <Menu>{menuItems ? Menu.Builder(path, menuItems) : menu}</Menu> | |
| </div> | |
| ) : null} | |
| <div className={rootClass.elem("content").toClassName()}>{children}</div> | |
| </div> | |
| ); | |
| }; | |