"use client"; import { useState } from "react"; import { motion, AnimatePresence } from "framer-motion"; interface VideoPreviewProps { videoId: string; title: string; } export function VideoPreview({ videoId, title }: VideoPreviewProps) { const [isLoading, setIsLoading] = useState(true); return (
{isLoading && ( )}