import { memo, useCallback, } from 'react' import { useTranslation } from 'react-i18next' import { useStore } from './store' import { useIsChatMode, useNodesReadOnly, useNodesSyncDraft, } from './hooks' import { XClose } from '@/app/components/base/icons/src/vender/line/general' import { FeaturesChoose, FeaturesPanel, } from '@/app/components/base/features' const Features = () => { const { t } = useTranslation() const isChatMode = useIsChatMode() const setShowFeaturesPanel = useStore(s => s.setShowFeaturesPanel) const { nodesReadOnly } = useNodesReadOnly() const { handleSyncWorkflowDraft } = useNodesSyncDraft() const handleFeaturesChange = useCallback(() => { handleSyncWorkflowDraft() }, [handleSyncWorkflowDraft]) return (