import Workspace from "@/pages/workspace/main";
import AutoLike from "@/pages/workspace/auto-like/AutoLike";
import NewAutoLike from "@/pages/workspace/auto-like/NewAutoLike";
import AutoLikeDetail from "@/pages/workspace/auto-like/AutoLikeDetail";
import AutoGroup from "@/pages/workspace/auto-group/AutoGroup";
import AutoGroupDetail from "@/pages/workspace/auto-group/Detail";
import GroupPush from "@/pages/workspace/group-push/GroupPush";
import NewGroupPush from "@/pages/workspace/group-push/new";
import MomentsSync from "@/pages/workspace/moments-sync/MomentsSync";
import MomentsSyncDetail from "@/pages/workspace/moments-sync/Detail";
import NewMomentsSync from "@/pages/workspace/moments-sync/new";
import AIAssistant from "@/pages/workspace/ai-assistant/AIAssistant";
import TrafficDistribution from "@/pages/workspace/traffic-distribution/TrafficDistribution";
import TrafficDistributionDetail from "@/pages/workspace/traffic-distribution/Detail";
import NewDistribution from "@/pages/workspace/traffic-distribution/NewDistribution";
import PlaceholderPage from "@/components/PlaceholderPage";

const workspaceRoutes = [
  {
    path: "/workspace",
    element: <Workspace />,
    auth: true,
  },
  // 自动点赞
  {
    path: "/workspace/auto-like",
    element: <AutoLike />,
    auth: true,
  },
  {
    path: "/workspace/auto-like/new",
    element: <NewAutoLike />,
    auth: true,
  },
  {
    path: "/workspace/auto-like/:id",
    element: <AutoLikeDetail />,
    auth: true,
  },
  {
    path: "/workspace/auto-like/:id/edit",
    element: <NewAutoLike />,
    auth: true,
  },
  // 自动分组
  {
    path: "/workspace/auto-group",
    element: <AutoGroup />,
    auth: true,
  },
  {
    path: "/workspace/auto-group/:id",
    element: <AutoGroupDetail />,
    auth: true,
  },
  // 群发推送
  {
    path: "/workspace/group-push",
    element: <GroupPush />,
    auth: true,
  },
  {
    path: "/workspace/group-push/new",
    element: <NewGroupPush />,
    auth: true,
  },
  {
    path: "/workspace/group-push/:id",
    element: <PlaceholderPage title="群发推送详情" />,
    auth: true,
  },
  {
    path: "/workspace/group-push/:id/edit",
    element: <PlaceholderPage title="编辑群发推送" />,
    auth: true,
  },
  // 朋友圈同步
  {
    path: "/workspace/moments-sync",
    element: <MomentsSync />,
    auth: true,
  },
  {
    path: "/workspace/moments-sync/new",
    element: <NewMomentsSync />,
    auth: true,
  },
  {
    path: "/workspace/moments-sync/:id",
    element: <MomentsSyncDetail />,
    auth: true,
  },
  {
    path: "/workspace/moments-sync/edit/:id",
    element: <NewMomentsSync />,
    auth: true,
  },
  // AI助手
  {
    path: "/workspace/ai-assistant",
    element: <AIAssistant />,
    auth: true,
  },
  // AI数据分析
  {
    path: "/workspace/ai-analyzer",
    element: <PlaceholderPage title="AI数据分析" />,
    auth: true,
  },
  // AI策略优化
  {
    path: "/workspace/ai-strategy",
    element: <PlaceholderPage title="AI策略优化" />,
    auth: true,
  },
  // AI销售预测
  {
    path: "/workspace/ai-forecast",
    element: <PlaceholderPage title="AI销售预测" />,
    auth: true,
  },
  // 流量分发
  {
    path: "/workspace/traffic-distribution",
    element: <TrafficDistribution />,
    auth: true,
  },
  {
    path: "/workspace/traffic-distribution/new",
    element: <NewDistribution />,
    auth: true,
  },
  {
    path: "/workspace/traffic-distribution/edit/:id",
    element: <NewDistribution />,
    auth: true,
  },
  {
    path: "/workspace/traffic-distribution/:id",
    element: <TrafficDistributionDetail />,
    auth: true,
  },
];

export default workspaceRoutes;
