import { customElement } from 'solid-element'; import { defaultBotProps } from './constants'; import { Bubble } from './features/bubble'; import { Full } from './features/full'; export const registerWebComponents = () => { if (typeof window === 'undefined') return; // @ts-expect-error element incorect type customElement('forjinn-fullchatbot', defaultBotProps, Full); customElement('forjinn-chatbot', defaultBotProps, Bubble); };