UNPKG

@bothub-chat/ui

Version:

Bothub UI Components

2 lines (1 loc) 1.29 kB
import{__rest as o}from"tslib";import{jsxs as t,jsx as r}from"react/jsx-runtime";import{BookmarkStyled as e,BookmarkName as a,BookmarkCloseButton as s}from"./styled.js";import{Skeleton as k}from"../skeleton/index.js";import"react";export{BookmarkCardAction,BookmarkCardActions,BookmarkCardBody,BookmarkCardChatList,BookmarkCardChats,BookmarkCardContent,BookmarkCardDeleteAction,BookmarkCardEditAction,BookmarkCardHead,BookmarkCardMain,BookmarkCardName,BookmarkCardStyled,BookmrakCardLine}from"./card/styled.js";import"./card/chat/styled.js";import"../icon/styled.js";import"@react-spring/web";import"react-dom";import"../portal/styled.js";import"../tooltip/styled.js";import"../tooltip/arrow/styled.js";import"../../theme/index.js";import"../tooltip/context.js";export{AddBookmarkButton,BookmarkList,BookmarkListContent,BookmarkListScrollbarWrapper,BookmarksContent,BookmarksStyled}from"./list/styled.js";const i=i=>{var m,{className:l}=i,d=o(i,["className"]);const n=null!==(m=!d.skeleton&&d.active)&&void 0!==m&&m;return t(e,{$active:n,$skeleton:d.skeleton,className:l,onClick:d.onClick,children:[t(a,{children:[!d.skeleton&&d.children,d.skeleton&&r(k,{width:80})]}),!d.skeleton&&!d.disableClose&&r(s,{onClick:d.onClose}),d.skeleton&&r(k,{width:18,height:18})]})};export{i as Bookmark};