import { Button } from '@/components/ui/button'; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from '@/components/ui/dialog'; import type { Bucket } from '@/types'; interface DeleteBucketDialogProps { open: boolean; onOpenChange: (open: boolean) => void; bucket: Bucket | null; onDeleteBucket: (name: string) => Promise; } export function DeleteBucketDialog({ open, onOpenChange, bucket, onDeleteBucket }: DeleteBucketDialogProps) { const handleDelete = async () => { if (!bucket) return; const success = await onDeleteBucket(bucket.name); if (success) { onOpenChange(false); } }; return ( Delete Bucket Are you sure you want to delete "{bucket?.name}"? This action cannot be undone. ); }