'use client'; import { memo } from 'react'; import { Loader2 } from 'lucide-react'; import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from '@/components/ui/alert-dialog'; interface VersionDeleteDialogProps { open: boolean; onOpenChange: (open: boolean) => void; isDeletingVersion: boolean; onDelete: () => void; } export const VersionDeleteDialog = memo(function VersionDeleteDialog({ open, onOpenChange, isDeletingVersion, onDelete, }: VersionDeleteDialogProps) { return ( Delete this version? This will permanently delete this version and all its comments. This cannot be undone. Cancel {isDeletingVersion && } Delete Version ); });