summaryrefslogtreecommitdiff
path: root/apps/web/src/components/editor/speed-control.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/components/editor/speed-control.tsx')
-rw-r--r--apps/web/src/components/editor/speed-control.tsx72
1 files changed, 36 insertions, 36 deletions
diff --git a/apps/web/src/components/editor/speed-control.tsx b/apps/web/src/components/editor/speed-control.tsx
index 39281a9a..ba5a4cc6 100644
--- a/apps/web/src/components/editor/speed-control.tsx
+++ b/apps/web/src/components/editor/speed-control.tsx
@@ -4,43 +4,43 @@ import { Button } from "../ui/button";
import { usePlaybackStore } from "@/stores/playback-store";
const SPEED_PRESETS = [
- { label: "0.5x", value: 0.5 },
- { label: "1x", value: 1.0 },
- { label: "1.5x", value: 1.5 },
- { label: "2x", value: 2.0 },
+ { label: "0.5x", value: 0.5 },
+ { label: "1x", value: 1.0 },
+ { label: "1.5x", value: 1.5 },
+ { label: "2x", value: 2.0 },
];
export function SpeedControl() {
- const { speed, setSpeed } = usePlaybackStore();
+ const { speed, setSpeed } = usePlaybackStore();
- return (
- <div className="space-y-4">
- <h3 className="text-sm font-medium">Playback Speed</h3>
- <div className="space-y-4">
- <div className="flex gap-2">
- {SPEED_PRESETS.map((preset) => (
- <Button
- key={preset.value}
- variant={speed === preset.value ? "default" : "outline"}
- className="flex-1"
- onClick={() => setSpeed(preset.value)}
- >
- {preset.label}
- </Button>
- ))}
- </div>
- <div className="space-y-1">
- <Label>Custom ({speed.toFixed(1)}x)</Label>
- <Slider
- value={[speed]}
- min={0.1}
- max={2.0}
- step={0.1}
- onValueChange={(value) => setSpeed(value[0])}
- className="mt-2"
- />
- </div>
- </div>
- </div>
- );
-} \ No newline at end of file
+ return (
+ <div className="space-y-4">
+ <h3 className="text-sm font-medium">Playback Speed</h3>
+ <div className="space-y-4">
+ <div className="flex gap-2">
+ {SPEED_PRESETS.map((preset) => (
+ <Button
+ key={preset.value}
+ variant={speed === preset.value ? "default" : "outline"}
+ className="flex-1"
+ onClick={() => setSpeed(preset.value)}
+ >
+ {preset.label}
+ </Button>
+ ))}
+ </div>
+ <div className="space-y-1">
+ <Label>Custom ({speed.toFixed(1)}x)</Label>
+ <Slider
+ value={[speed]}
+ min={0.1}
+ max={2.0}
+ step={0.1}
+ onValueChange={(value) => setSpeed(value[0])}
+ className="mt-2"
+ />
+ </div>
+ </div>
+ </div>
+ );
+}