'use client'; import { Trash2 } from 'lucide-react'; import { deleteUser } from './actions'; export function DeleteUserButton({ userId, username, disabled }: { userId: string; username: string; disabled: boolean }) { if (disabled) return null; const handleSubmit = (e: React.FormEvent) => { if (!confirm(`"${username}" kullanıcısı silinsin mi?`)) { e.preventDefault(); } }; return (
); }