@bothub-chat/ui
Version:
Bothub UI Components
2 lines (1 loc) • 691 B
JavaScript
import{jsxs as r,jsx as e}from"react/jsx-runtime";import{BlockStyled as l,BlockHead as o,BlockTitle as t,BlockBody as a,BlockBodyScrollbarWrapper as n,BlockBodyContent as c}from"./styled.js";export{BlockToolbar,BlockToolbarButtons}from"./styled.js";const i=({className:i,title:d,toolbar:s,background:h,variant:m="rounded",fullHeight:u=!1,children:b})=>{const f=!!d;return r(l,{$variant:m,className:i,children:[f&&r(o,{$toolbar:!!s,children:[d&&e(t,{children:d}),s]}),r(a,{$head:f,children:[h,e(n,{children:e(c,{$head:f,$fullHeight:u,children:b})})]})]})};export{i as Block,a as BlockBody,c as BlockBodyContent,n as BlockBodyScrollbarWrapper,o as BlockHead,l as BlockStyled,t as BlockTitle};