UNPKG

@bothub-chat/ui

Version:

Bothub UI Components

2 lines (1 loc) 404 B
import{jsx as r}from"react/jsx-runtime";import{useDroppable as e}from"@dnd-kit/core";import{SidebarListChatsStyled as t}from"./styled.js";import{useSidebar as i}from"../context.js";const o=({children:o,id:s=""})=>{const{isOpen:c}=i(),{setNodeRef:d,isOver:n}=e({id:s||"chats",data:{accepts:["chat"],type:"group"}});return r(t,{ref:d,$isOver:n,$isSidebarOpen:c,children:o})};export{o as SidebarListChats};