From 2a8218a89dc4dea332b106e4fbd73aca4405d2a3 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Mon, 14 Sep 2026 20:44:41 +0800 Subject: [PATCH] refactor: delete AddClipPicker.tsx (#1899 #1900) --- .../components/timeline/AddClipPicker.tsx | 54 ------------------- 1 file changed, 54 deletions(-) delete mode 100644 apps/web/src/pages/editing-planner/components/timeline/AddClipPicker.tsx diff --git a/apps/web/src/pages/editing-planner/components/timeline/AddClipPicker.tsx b/apps/web/src/pages/editing-planner/components/timeline/AddClipPicker.tsx deleted file mode 100644 index 0afeb77c5..000000000 --- a/apps/web/src/pages/editing-planner/components/timeline/AddClipPicker.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import React from "react" -import type { ClipType } from "../../types" -import { CLIP_TYPE_ICONS, CLIP_TYPE_LABELS } from "../../constants/timeline" - -interface AddClipPickerProps { - pickerRef: React.RefObject - position: { top: number; right: number } - availableTypes: ClipType[] - addType: ClipType - onTypeChange: (type: ClipType) => void - onConfirm: () => void -} - -export const AddClipPicker: React.FC = ({ - pickerRef, - position, - availableTypes, - addType, - onTypeChange, - onConfirm, -}) => { - return ( -
-
添加片段
- - {/* 类型选择 */} -
- 类型: - {availableTypes.map((t) => ( - - ))} -
- - {/* 确认按钮 */} - -
- ) -}