'use client' import React, { FC, ReactNode } from 'react' import cn from 'classnames' import { StarIcon } from '@/app/components/share/chat/welcome/massive-component' import Button from '@/app/components/base/button' import { useTranslation } from 'react-i18next' import s from './style.module.css' export interface 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)