Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/hooks/useKeyboardShortcuts.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { useEffect } from "react";
import { EditRecipe, DEFAULT_RECIPE, ExportStatus } from "@/lib/types";
import { EditRecipe, ExportStatus } from "@/lib/types";
import { PRESETS } from "@/lib/presets";

interface UseKeyboardShortcutsProps {
file: File | null;
recipe: EditRecipe;
resetSettings: () => void;
updateRecipe: (recipe: Partial<EditRecipe>) => void;
updateRecipe: (recipe: Partial<EditRecipe>) => void;
handleExport: () => void;
status: ExportStatus;
cancelExport: () => void;
Expand Down Expand Up @@ -40,7 +40,7 @@ export function useKeyboardShortcuts({
e.stopPropagation(); // ← add this
if (file && status === "idle") handleExport();
return;
}
}

if (!file) return;

Expand Down
33 changes: 0 additions & 33 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,39 +57,6 @@ export type ExportStatus =
| "done"
| "error";

export const SPEED_STEPS = [
0.25,
0.5,
0.75,
1,
1.25,
1.5,
2,
4,
] as const;

export const DEFAULT_RECIPE: EditRecipe = {
preset: "vertical-9-16",
customWidth: 1920,
customHeight: 1080,
framing: "fit",
trimStart: 0,
trimEnd: null,
rotate: 0,
keepAudio: true,
normalizeAudio: false,
speed: 1,
quality: 23,
format: "mp4",
stabilization: false,
denoise: false,
brightness: 0,
contrast: 1,
saturation: 1,
soundOnCompletion: false,
version: RECIPE_VERSION,
};

export const MAX_FILE_SIZE =
2 * 1024 * 1024 * 1024;

Expand Down
Loading