import { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, Heading, HStack, Stack, } from '@chakra-ui/react' import { ChatIcon, CodeIcon, MoreVerticalIcon } from 'assets/icons' import { headerHeight } from 'components/shared/TypebotHeader' import { useTypebot } from 'contexts/TypebotContext' import { GeneralSettings, Metadata, TypingEmulation } from 'models' import React from 'react' import { GeneralSettingsForm } from './GeneralSettingsForm' import { MetadataForm } from './MetadataForm' import { TypingEmulationForm } from './TypingEmulationForm' export const SettingsSideMenu = () => { const { typebot, updateTypebot } = useTypebot() const handleTypingEmulationChange = (typingEmulation: TypingEmulation) => typebot && updateTypebot({ settings: { ...typebot.settings, typingEmulation } }) const handleGeneralSettingsChange = (general: GeneralSettings) => typebot && updateTypebot({ settings: { ...typebot.settings, general } }) const handleMetadataChange = (metadata: Metadata) => typebot && updateTypebot({ settings: { ...typebot.settings, metadata } }) return ( Settings General {typebot && ( )} Typing emulation {typebot && ( )} Metadata {typebot && ( )} ) }