diff --git a/apps/web/src/pages/templates/components/template-library/TemplateToolbar.tsx b/apps/web/src/pages/templates/components/template-library/TemplateToolbar.tsx deleted file mode 100644 index 14b7ed847..000000000 --- a/apps/web/src/pages/templates/components/template-library/TemplateToolbar.tsx +++ /dev/null @@ -1,49 +0,0 @@ -import React from "react" -import { SearchOutlined } from "@ant-design/icons" -import type { EditTemplateType } from "../../types/templateLibrary" -import { TEMPLATE_TYPES } from "../../constants/templateLibrary" - -interface TemplateToolbarProps { - searchText: string - onSearchChange: (e: React.ChangeEvent) => void - activeType: EditTemplateType | "全部" - onTypeChange: (type: EditTemplateType | "全部") => void -} - -export const TemplateToolbar: React.FC = ({ - searchText, - onSearchChange, - activeType, - onTypeChange, -}) => { - return ( -
-
- - - - -
-
- {TEMPLATE_TYPES.map((cat) => ( - - ))} -
-
- ) -} - -export default TemplateToolbar