From 0387bd4c80f699cf0272fa0165d3c86dceaf39dc Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Sat, 18 Apr 2026 15:35:04 +0200 Subject: delete legacy folder --- legacy/components/properties/effect-properties.tsx | 58 ---------------------- 1 file changed, 58 deletions(-) delete mode 100644 legacy/components/properties/effect-properties.tsx (limited to 'legacy/components/properties/effect-properties.tsx') diff --git a/legacy/components/properties/effect-properties.tsx b/legacy/components/properties/effect-properties.tsx deleted file mode 100644 index 78582961..00000000 --- a/legacy/components/properties/effect-properties.tsx +++ /dev/null @@ -1,58 +0,0 @@ -"use client"; - -import type { EffectElement } from "@/types/timeline"; -import { getEffect } from "@/lib/effects/registry"; -import { useEditor } from "@/hooks/use-editor"; -import { - Section, - SectionContent, - SectionHeader, - SectionFields, - SectionTitle, -} from "./section"; -import { EffectParamField } from "./effect-param-field"; - -export function EffectProperties({ - element, - trackId, -}: { - element: EffectElement; - trackId: string; -}) { - const editor = useEditor(); - const definition = getEffect({ effectType: element.effectType }); - - const previewParam = - ({ key }: { key: string }) => - (value: number | string | boolean) => - editor.timeline.previewElements({ - updates: [ - { - trackId, - elementId: element.id, - updates: { params: { ...element.params, [key]: value } }, - }, - ], - }); - - return ( -
- - {definition.name} - - - - {definition.params.map((param) => ( - editor.timeline.commitPreview()} - /> - ))} - - -
- ); -} -- cgit v1.3.1