import { GripVertical, ChevronUp, ChevronDown, Trash2 } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Badge } from "@/components/ui/badge"; const BLOCK_LABELS = { "text": "Text", "image": "Image", "text-image": "Text + Image", "video": "Video", "text-video": "Text + Video", "audio": "Audio", }; export function BlockWrapper({ type, index, total, onMoveUp, onMoveDown, onDelete, children, }) { return (
{/* ── Top toolbar ── */}
{/* Left — drag handle + block type */}
{BLOCK_LABELS[type] ?? type} Block {index + 1}
{/* Right — move + delete */}
{/* ── Block content ── */}
{children}
); }