"use client" import { Card, CardContent } from "@/components/ui/card" import { ThumbsUp, MessageSquare, Send, Users, Share2, Brain, BarChart2, LineChart, Clock } from "lucide-react" import Link from "next/link" import { Badge } from "@/components/ui/badge" import { Progress } from "@/components/ui/progress" export default function WorkspacePage() { // 模拟任务数据 const taskStats = { total: 42, inProgress: 12, completed: 30, todayTasks: 12, activityRate: 98, } // 常用功能 - 保持原有排列 const commonFeatures = [ { id: "auto-like", name: "自动点赞", description: "智能自动点赞互动", icon: , path: "/workspace/auto-like", bgColor: "bg-red-100", isNew: true, }, { id: "moments-sync", name: "朋友圈同步", description: "自动同步朋友圈内容", icon: , path: "/workspace/moments-sync", bgColor: "bg-purple-100", }, { id: "group-push", name: "群消息推送", description: "智能群发助手", icon: , path: "/workspace/group-push", bgColor: "bg-orange-100", }, { id: "auto-group", name: "自动建群", description: "智能拉好友建群", icon: , path: "/workspace/auto-group", bgColor: "bg-green-100", }, { id: "traffic-distribution", name: "流量分发", description: "管理流量分发和分配", icon: , path: "/workspace/traffic-distribution", bgColor: "bg-blue-100", }, { id: "ai-assistant", name: "AI对话助手", description: "智能回复,提高互动质量", icon: , path: "/workspace/ai-assistant", bgColor: "bg-blue-100", isNew: true, }, ] // AI智能助手 const aiFeatures = [ { id: "ai-analyzer", name: "AI数据分析", description: "智能分析客户行为特征", icon: , path: "/workspace/ai-analyzer", bgColor: "bg-indigo-100", isNew: true, }, { id: "ai-strategy", name: "AI策略优化", description: "智能优化获客策略", icon: , path: "/workspace/ai-strategy", bgColor: "bg-cyan-100", isNew: true, }, { id: "ai-forecast", name: "AI销售预测", description: "智能预测销售趋势", icon: , path: "/workspace/ai-forecast", bgColor: "bg-amber-100", }, ] return (

工作台

{/* 任务统计卡片 */}
总任务数
{taskStats.total}
进行中: {taskStats.inProgress} / 已完成: {taskStats.completed}
今日任务
{taskStats.todayTasks}
活跃度 {taskStats.activityRate}%
{/* 常用功能 */}

常用功能

{commonFeatures.map((feature) => (
{feature.icon}
{feature.name}
{feature.isNew && ( New )}
{feature.description}
))}
{/* AI智能助手 */}

AI 智能助手

{aiFeatures.map((feature) => (
{feature.icon}
{feature.name}
{feature.isNew && ( New )}
{feature.description}
))}
) }