refactor(admin): refactor admin roles and users management

This commit is contained in:
2026-06-16 11:16:28 +05:30
parent bea47d29d5
commit 893b49c701
25 changed files with 1615 additions and 825 deletions

View File

@@ -135,7 +135,7 @@ export function DataTable<TData, TValue>({
return (
<section className="space-y-4 rounded-lg border bg-card p-4">
<TopHeader
title={title}
title={onAddNew ? title : undefined}
itemCount={pagination?.totalItems ?? data.length}
onAddNew={onAddNew}
addButtonText={addButtonText}