import { Heading, Stack } from '@chakra-ui/react' import { ChatTheme, ContainerColors, InputColors } from 'models' import React from 'react' import { ButtonsTheme } from './ButtonsTheme' import { GuestBubbles } from './GuestBubbles' import { HostBubbles } from './HostBubbles' import { InputsTheme } from './InputsTheme' type Props = { chatTheme?: ChatTheme onChatThemeChange: (chatTheme: ChatTheme) => void } export const ChatThemeSettings = ({ chatTheme, onChatThemeChange }: Props) => { const handleHostBubblesChange = (hostBubbles: ContainerColors) => onChatThemeChange({ ...chatTheme, hostBubbles }) const handleGuestBubblesChange = (guestBubbles: ContainerColors) => onChatThemeChange({ ...chatTheme, guestBubbles }) const handleButtonsChange = (buttons: ContainerColors) => onChatThemeChange({ ...chatTheme, buttons }) const handleInputsChange = (inputs: InputColors) => onChatThemeChange({ ...chatTheme, inputs }) return ( Bot bubbles User bubbles Buttons Inputs ) }