import { useState } from 'react' import { useTranslation } from 'react-i18next' import { useChatWithHistoryContext } from '../context' import Form from './form' import Button from '@/app/components/base/button' import AppIcon from '@/app/components/base/app-icon' import { MessageDotsCircle } from '@/app/components/base/icons/src/vender/solid/communication' import { Edit02 } from '@/app/components/base/icons/src/vender/line/general' import { Star06 } from '@/app/components/base/icons/src/vender/solid/shapes' import LogoSite from '@/app/components/base/logo/logo-site' const ConfigPanel = () => { const { t } = useTranslation() const { appData, inputsForms, handleStartChat, showConfigPanelBeforeChat, isMobile, } = useChatWithHistoryContext() const [collapsed, setCollapsed] = useState(true) const customConfig = appData?.custom_config const site = appData?.site return (