feat(admin): marketplace console + analytics degraded banners
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
f150aea8b9
commit
025af147cd
9 files changed
+373
-57
No files matched your search
@@ -6,18 +6,21 @@ export function AdminSimplePager({
|
||||
lastPage,
|
||||
total,
|
||||
basePath,
|
||||
params,
|
||||
label,
|
||||
}: {
|
||||
page: number;
|
||||
lastPage: number;
|
||||
total: number;
|
||||
basePath: string;
|
||||
/** Extra query params preserved across pages (e.g. filter=sold). */
|
||||
params?: Record<string, string>;
|
||||
label?: string;
|
||||
}) {
|
||||
if (lastPage <= 1) return null;
|
||||
|
||||
const href = (p: number) => {
|
||||
const u = new URLSearchParams();
|
||||
const u = new URLSearchParams(params);
|
||||
u.set("page", String(p));
|
||||
return `${basePath}?${u.toString()}`;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user