'use client' import type { FC, ReactNode } from 'react' import React from 'react' import cn from 'classnames' import { useTranslation } from 'react-i18next' import s from './style.module.css' import { StarIcon } from '@/app/components/share/chatbot/welcome/massive-component' import Button from '@/app/components/base/button' export type ITemplateVarPanelProps = { className?: string header: ReactNode children?: ReactNode | null isFold: boolean } const TemplateVarPanel: FC = ({ className, header, children, isFold, }) => { return (
{/* header */}
{header}
{/* body */} {!isFold && children && (
{children}
)}
) } export const PanelTitle: FC<{ title: string; className?: string }> = ({ title, className, }) => { return (
{title}
) } export const VarOpBtnGroup: FC<{ className?: string; onConfirm: () => void; onCancel: () => void }> = ({ className, onConfirm, onCancel, }) => { const { t } = useTranslation() return (
) } export default React.memo(TemplateVarPanel)