refresh button inside admin

This commit is contained in:
Pallavi Kumari
2025-10-05 23:19:35 +05:30
parent cd27f6459c
commit c7c3e3ee73
6 changed files with 93 additions and 7 deletions

View File

@@ -8,11 +8,15 @@ import { useTranslations } from "next-intl";
interface DataTableProps<TData, TValue> {
columns: ColumnDef<TData, TValue>[];
data: TData[];
onRefresh?: () => void;
isRefreshing?: boolean;
}
export function IdpDataTable<TData, TValue>({
columns,
data
data,
onRefresh,
isRefreshing
}: DataTableProps<TData, TValue>) {
const router = useRouter();
const t = useTranslations();
@@ -29,6 +33,8 @@ export function IdpDataTable<TData, TValue>({
onAdd={() => {
router.push("/admin/idp/create");
}}
onRefresh={onRefresh}
isRefreshing={isRefreshing}
/>
);
}