import * as React from 'react' import { useTranslation } from 'react-i18next' import Button from '@/app/components/base/button' import InputsFormContent from '@/app/components/base/chat/embedded-chatbot/inputs-form/content' import Divider from '@/app/components/base/divider' import { AppSourceType } from '@/service/share' import { cn } from '@/utils/classnames' import { useEmbeddedChatbotContext } from '../context' type Props = { collapsed: boolean setCollapsed: (collapsed: boolean) => void } const InputsFormNode = ({ collapsed, setCollapsed, }: Props) => { const { t } = useTranslation() const { appSourceType, isMobile, currentConversationId, themeBuilder, handleStartChat, allInputsHidden, inputsForms, } = useEmbeddedChatbotContext() const isTryApp = appSourceType === AppSourceType.tryApp if (allInputsHidden || inputsForms.length === 0) return null return (