diff --git a/apps/web/src/pages/editing-planner/components/PipConfigPanel/components/LayerList.tsx b/apps/web/src/pages/editing-planner/components/PipConfigPanel/components/LayerList.tsx deleted file mode 100644 index 135d507d6..000000000 --- a/apps/web/src/pages/editing-planner/components/PipConfigPanel/components/LayerList.tsx +++ /dev/null @@ -1,58 +0,0 @@ -import React from "react" -import type { PipLayer } from "../../../types" -import { LAYER_COLORS } from "../constants" - -export interface LayerListProps { - layers: PipLayer[] - selectedId: string - onSelect: (id: string) => void - onDelete: (id: string) => void -} - -export const LayerList: React.FC = ({ layers, selectedId, onSelect, onDelete }) => { - if (layers.length === 0) { - return ( -
-
暂无图层,点击上方添加
-
- ) - } - - return ( -
- {layers.map((layer, idx) => ( -
onSelect(layer.id)} - > - {layer.thumbnail_url || layer.material_url ? ( - {layer.name} - ) : ( -
- )} - {layer.name} - -
- ))} -
- ) -}