@bothub-chat/ui
Version:
Bothub UI Components
2 lines (1 loc) • 439 B
JavaScript
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{useSidebar as t}from"../context.js";import{SidebarChatBox as n,SidebarChatStyled as o,SidebarChatName as i,SidebarChatIconSkeleton as s,SidebarChatSkeleton as c,SidebarChatButton as l}from"./styled.js";const m=()=>{const{isOpen:m}=t();return m?e(n,{children:e(o,{children:r(i,{$skeleton:!0,children:[e(s,{}),e(c,{})]})})}):e(l,{children:e(s,{})})};export{m as SidebarChatSkeleton};