This commit is contained in:
2026-06-11 13:25:26 +03:00
parent b931ee64d4
commit 60b48ca5e8
60 changed files with 12302 additions and 0 deletions
@@ -0,0 +1,20 @@
'use client'
import { Trash2 } from 'lucide-react'
import { deleteProduct } from './actions'
export default function DeleteButton({ id }: { id: number }) {
return (
<button
onClick={async () => {
if (confirm('Bu ürünü silmek istediğinize emin misiniz?')) {
await deleteProduct(id)
}
}}
className="p-2 text-red-600 hover:bg-red-50 rounded-lg transition-colors"
title="Sil"
>
<Trash2 size={18} />
</button>
)
}