feat: admin panel CRUD, Cloudinary upload, logo, user management

This commit is contained in:
mstfyldz
2026-06-05 17:38:01 +03:00
parent 53eeeee474
commit 5e4e2f0db9
43 changed files with 3917 additions and 281 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>
)
}