From c121d23cb6afe0549c3d3542432c3146aa3b13a6 Mon Sep 17 00:00:00 2001 From: aaniya22 Date: Sun, 19 Jul 2026 00:11:09 +0530 Subject: [PATCH] fix: import missing encodeRecipe in VideoEditor --- src/components/VideoEditor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/VideoEditor.tsx b/src/components/VideoEditor.tsx index a12c1f41..e1215b7f 100644 --- a/src/components/VideoEditor.tsx +++ b/src/components/VideoEditor.tsx @@ -1,7 +1,7 @@ "use client"; import { useState, useRef, useEffect, useMemo } from "react"; -import { useVideoEditor } from "@/hooks/useVideoEditor"; +import { useVideoEditor, encodeRecipe } from "@/hooks/useVideoEditor"; import { TextOverlay } from "@/lib/types"; import FileUpload from "./FileUpload"; import VideoPreview from "./VideoPreview"; @@ -277,7 +277,7 @@ export default function VideoEditor() { const handleCopyLink = () => { if (typeof window === "undefined") return; - const encoded = btoa(JSON.stringify(recipe)); + const encoded = encodeRecipe(recipe); const url = new URL(window.location.href); url.searchParams.set("settings", encoded); history.replaceState(null, "", url.toString());