import { AlertCircle } from 'lucide-react'; import React from 'react'; interface DeleteConfirmationProps { item: any | null; onConfirm: () => Promise; onCancel: () => void; } export function DeleteConfirmation({ item, onConfirm, onCancel }: DeleteConfirmationProps) { const handleConfirm = React.useCallback(async () => { await onConfirm(); // Auto-close after confirmation by calling onCancel to dismiss overlay }, [onConfirm]); return (
e.stopPropagation()}>

Are you sure you want to delete "{item?.title || 'this item'}"?

This action cannot be undone and will permanently remove the content from the system.

); }