summaryrefslogtreecommitdiff
path: root/apps/web/src/components/editor/properties-panel.tsx
diff options
context:
space:
mode:
authorPriyankar Pal <88102392+priyankarpal@users.noreply.github.com>2025-06-26 11:35:55 +0530
committerGitHub <noreply@github.com>2025-06-26 11:35:55 +0530
commit4ed9858725ebfbc95f6e470e118b37aa1079f7d0 (patch)
treeae63f6e77cf738cab0a56e9eb865839742b9d163 /apps/web/src/components/editor/properties-panel.tsx
parentc322ad1124aea02169b2094498cac5b6da54dd5b (diff)
parenta8d6bbd03a4c5a89075d75ea37b61afa5efe373a (diff)
downloadopencut-4ed9858725ebfbc95f6e470e118b37aa1079f7d0.tar.gz
Merge branch 'main' into split-issue-83
Diffstat (limited to 'apps/web/src/components/editor/properties-panel.tsx')
-rw-r--r--apps/web/src/components/editor/properties-panel.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/web/src/components/editor/properties-panel.tsx b/apps/web/src/components/editor/properties-panel.tsx
index c784dab8..96ef66e5 100644
--- a/apps/web/src/components/editor/properties-panel.tsx
+++ b/apps/web/src/components/editor/properties-panel.tsx
@@ -17,13 +17,12 @@ import { useMediaStore } from "@/stores/media-store";
import { ImageTimelineTreatment } from "@/components/ui/image-timeline-treatment";
import { useState } from "react";
import { SpeedControl } from "./speed-control";
+import type { BackgroundType } from "@/types/editor";
export function PropertiesPanel() {
const { tracks } = useTimelineStore();
const { mediaItems } = useMediaStore();
- const [backgroundType, setBackgroundType] = useState<
- "blur" | "mirror" | "color"
- >("blur");
+ const [backgroundType, setBackgroundType] = useState<BackgroundType>("blur");
const [backgroundColor, setBackgroundColor] = useState("#000000");
// Get the first video clip for preview (simplified)
@@ -78,7 +77,9 @@ export function PropertiesPanel() {
<Label htmlFor="bg-type">Background Type</Label>
<Select
value={backgroundType}
- onValueChange={(value: any) => setBackgroundType(value)}
+ onValueChange={(value: BackgroundType) =>
+ setBackgroundType(value)
+ }
>
<SelectTrigger>
<SelectValue placeholder="Select background type" />