'use client'; import { useState } from 'react'; import { useParams } from 'next/navigation'; import VideoForm from '@/components/Forms/VideoForm'; import { updateVideo } from '@/app/actions/video'; import { useFetch } from '@/hooks/useFetch'; interface Video { id: string; title: string; description: string; videoUrl: string; videoType: 'YOUTUBE' | 'LOCAL'; isPublic: boolean; menuId?: string; } interface Menu { id: string; title: string; } export default function EditVideoPage() { const params = useParams(); const id = params?.id as string; const { data: video, loading } = useFetch