import React from 'react' import { useTranslation } from 'react-i18next' import { Message3Fill } from '@/app/components/base/icons/src/public/other' import Button from '@/app/components/base/button' import Divider from '@/app/components/base/divider' import InputsFormContent from '@/app/components/base/chat/chat-with-history/inputs-form/content' import { useChatWithHistoryContext } from '../context' import cn from '@/utils/classnames' type Props = { collapsed: boolean setCollapsed: (collapsed: boolean) => void } const InputsFormNode = ({ collapsed, setCollapsed, }: Props) => { const { t } = useTranslation() const { isMobile, currentConversationId, handleStartChat, themeBuilder, } = useChatWithHistoryContext() return (
{t('share.chat.chatSettingsTitle')}
{collapsed && ( )} {!collapsed && currentConversationId && ( )}
{!collapsed && (
)} {!collapsed && !currentConversationId && (
)}
{collapsed && (
)}
) } export default InputsFormNode