https://dev.kronoz.win/r/marzneshin.git
1
2import { FC, PropsWithChildren } from "react"
3import { Label } from "@marzneshin/components"
4import { useSidebarContext } from "./sidebar-provider";
5
6export interface SidebarGroupProps
7 extends PropsWithChildren {
8
9}
10
11export const SidebarGroup: FC<SidebarGroupProps> = ({ children }) => {
12 const { collapsed } = useSidebarContext();
13
14 if (!collapsed)
15 return (
16 <Label className="text-gray-500 font-header">
17 {children}
18 </Label>
19 )
20}