"use client"; import { Button } from "../ui/button"; import { AspectRatio } from "../ui/aspect-ratio"; import { useMediaStore } from "@/stores/media-store"; import { Plus, Image, Video, Music, Upload } from "lucide-react"; import { useState, useRef } from "react"; export function MediaPanel() { const { mediaItems, addMediaItem } = useMediaStore(); const [isDragOver, setIsDragOver] = useState(false); const dragCounterRef = useRef(0); const handleAddSampleMedia = () => { // Just for testing - add a sample media item addMediaItem({ name: `Sample ${mediaItems.length + 1}`, type: "image", }); }; const getMediaIcon = (type: string) => { switch (type) { case "video": return