import { Copy, Edit, FileText, LayoutTemplate } from 'lucide-react'; import { Button } from 'react-bootstrap'; import { useSelector } from 'react-redux'; import Spinning from './Spinning'; export default function TemplateList({ activeTab }) { const { templates, templatesStatus } = useSelector((state) => state.inbox); // 如果正在加载,显示加载中 if (templatesStatus === 'loading') { return ; } if (templates.length === 0) { return (
No templates found
); } return (
{templates.map((template) => (
{template.type === 'initial' && ( 初步建联 )} {template.type === 'bargain' && ( 砍价邮件 )} {template.type === 'script' && ( 脚本邮件 )} {template.type === 'cooperation' && ( 合作追踪 )}{' '} - {template.name}
Platform
{template.platform}
Service
{template.service}
Message
{template.message}
))}
); }