import { Show } from 'solid-js' import { isNotDefined, isSvgSrc } from '@indite.io/lib' import { BubbleTheme, ButtonTheme } from '../types' import { isLight } from '@indite.io/lib/hexToRgb' import { clsx } from 'clsx' type Props = Pick & ButtonTheme & { isBotOpened: boolean toggleBot: () => void buttonSize: `${number}px` } const defaultButtonColor = '#0042DA' const defaultDarkIconColor = '#27272A' const defaultLightIconColor = '#fff' const isImageSrc = (src: string) => src.startsWith('http') || src.startsWith('data:image/svg+xml') export const BubbleButton = (props: Props) => ( )