import { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, Heading, HStack, Stack, } from '@chakra-ui/react' import { ChatIcon, CodeIcon, PencilIcon } from '@/components/icons' import { ChatTheme, GeneralTheme } from '@typebot.io/schemas' import React from 'react' import { CustomCssSettings } from './CustomCssSettings' import { useTypebot } from '@/features/editor/providers/TypebotProvider' import { headerHeight } from '@/features/editor/constants' import { ChatThemeSettings } from './chat/ChatThemeSettings' import { GeneralSettings } from './general/GeneralSettings' export const ThemeSideMenu = () => { const { typebot, updateTypebot } = useTypebot() const handleChatThemeChange = (chat: ChatTheme) => typebot && updateTypebot({ theme: { ...typebot.theme, chat } }) const handleGeneralThemeChange = (general: GeneralTheme) => typebot && updateTypebot({ theme: { ...typebot.theme, general } }) const handleCustomCssChange = (customCss: string) => typebot && updateTypebot({ theme: { ...typebot.theme, customCss } }) return ( Customize the theme General {typebot && ( )} Chat {typebot && ( )} Custom CSS {typebot && ( )} ) }