@bothub-chat/ui
Version:
Bothub UI Components
2 lines (1 loc) • 507 B
JavaScript
import{jsx as r,jsxs as e}from"react/jsx-runtime";import{SidebarGroupStyled as i,SidebarGroupButton as n,SidebarGroupIconSkeleton as t,SidebarGroupSkeletonContainer as c,SidebarGroupSkeletonStyled as o,SidebarGroupList as d}from"./styled.js";import{useSidebar as s}from"../context.js";const l=({children:l})=>{const{isOpen:m}=s();return m?e(i,{children:[e(c,{children:[r(t,{}),r(o,{})]}),!!l&&r(d,{$isSidebarOpen:m,children:l})]}):r(i,{children:r(n,{children:r(t,{})})})};export{l as SidebarGroupSkeleton};