diff --git a/apps/web/src/pages/templates/TemplateLibrary.tsx b/apps/web/src/pages/templates/TemplateLibrary.tsx deleted file mode 100644 index 564a6ad7f..000000000 --- a/apps/web/src/pages/templates/TemplateLibrary.tsx +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 模板库页面(升级版)— V21 设计系统 - * 对接后端模板管理 API: - * - 分页查询(page/page_size/category/keyword) - * - 模板详情(素材规则、字幕样式、BGM、比例等参数配置) - * - 复制模板 / 从模板生成 - * - 卡片网格布局 + 类型筛选 + 搜索 + 收藏 - */ -import React from "react" -import { useTemplateLibrary } from "./hooks/useTemplateLibrary" -import { useTemplateDetail } from "./hooks/useTemplateDetail" -import { TemplateHeader } from "./components/template-library/TemplateHeader" -import { TemplateToolbar } from "./components/template-library/TemplateToolbar" -import { TemplateGrid } from "./components/template-library/TemplateGrid" -import { TemplateDetailModal } from "./components/template-library/TemplateDetailModal" -import "./templates.css" - -const TemplateLibrary: React.FC = () => { - const { - templates, - totalTemplates, - isLoading, - isError, - error, - searchText, - activeType, - page, - pageSize, - setPage, - toggleFavorite, - handleCopy, - handleUse, - handleCreate, - handleSearchChange, - handleCategoryChange, - } = useTemplateLibrary() - - const { - previewTemplate, - detailLoading, - handlePreview, - handleClose, - handleToggleFavorite, - handleUse: handleUseFromDetail, - handleCopy: handleCopyFromDetail, - } = useTemplateDetail({ - onToggleFavorite: (id) => toggleFavorite(id), - onUse: handleUse, - onCopy: handleCopy, - }) - - return ( -