'use client' import { restoreListingAction, hardDeleteListingAction } from '@/app/actions' import { RotateCcw, Trash2 } from 'lucide-react' export function TrashActionButtons({ id, type }: { id: string; type: 'listing' | 'event' }) { const handleRestore = async () => { if (!confirm('Bu ögeyi geri yüklemek istediğinize emin misiniz? Ana listeye eklenecektir.')) return if (type === 'listing') { const res = await restoreListingAction(id) if (res?.error) alert(res.error) } } const handleHardDelete = async () => { if (!confirm('DİKKAT: Bu ögeyi kalıcı olarak silmek istediğinize emin misiniz? Bu işlem geri alınamaz!')) return if (type === 'listing') { const res = await hardDeleteListingAction(id) if (res?.error) alert(res.error) } } return (