UNPKG

@bothub-chat/ui

Version:

Bothub UI Components

2 lines (1 loc) 644 B
import{__rest as r}from"tslib";import{jsx as t}from"react/jsx-runtime";import{useMemo as o}from"react";import{AddChatIcon as e}from"../../../../icons/add-chat/index.js";import{Button as i}from"../../../button/index.js";import"../../../../theme/index.js";import{useTheme as s}from"../../../../theme/hook.js";const c=c=>{var m=r(c,[]);const a=s(),n=o((()=>{switch(a.mode){case"dark":return a.bright?a.colors.base.black:a.colors.base.white;case"light":return a.bright?a.default.colors.base.black:a.default.colors.base.white}}),[a.mode,a.bright]);return t(i,Object.assign({},m,{iconFill:n,children:t(e,{})}))};export{c as SidebarCreateChatButton};