import Link from "next/link"; import { Plus, Edit } from "lucide-react"; import { PageHeader } from "@/components/admin/form"; import { DeleteButton } from "@/components/admin/delete-button"; import { listSolutions } from "@/lib/data"; import { deleteSolution } from "@/lib/admin-actions"; export default async function SolutionsAdminPage() { const solutions = await listSolutions(); return (
Yeni çözüm } />
{solutions.length === 0 && ( )} {solutions.map((s) => ( ))}
Sıra Başlık Slug İkon Öne çıkan İşlem
Çözüm eklenmemiş.
{s.order ?? 0} {s.title} {s.slug} {s.icon ?? "—"} {s.featured ? ( Öne çıkan ) : ( )}
Düzenle
); }