2025-01-06 12:49:13 +05:00
|
|
|
import { AdminDevicesTable } from "@/components/admin/admin-devices-table";
|
2025-01-01 23:48:56 +05:00
|
|
|
import Search from "@/components/search";
|
|
|
|
import { Suspense } from "react";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default async function UserDevices({
|
|
|
|
searchParams,
|
|
|
|
}: {
|
|
|
|
searchParams: Promise<{
|
|
|
|
query: string;
|
|
|
|
page: number;
|
|
|
|
sortBy: string;
|
|
|
|
status: string;
|
|
|
|
}>;
|
|
|
|
}) {
|
|
|
|
const query = (await searchParams)?.query || "";
|
2024-11-30 23:38:32 +05:00
|
|
|
return (
|
|
|
|
<div>
|
2024-12-26 20:25:38 +05:00
|
|
|
<div className="flex justify-between items-center border-[1px] rounded-md border-dashed font-bold title-bg py-4 px-2 mb-4">
|
|
|
|
<h3 className="text-sarLinkOrange text-2xl">
|
|
|
|
User Devices
|
|
|
|
</h3>
|
|
|
|
</div>
|
2025-01-01 23:48:56 +05:00
|
|
|
|
|
|
|
<div
|
|
|
|
id="user-filters"
|
|
|
|
className=" pb-4 gap-4 flex sm:flex-row flex-col items-start justify-start"
|
|
|
|
>
|
|
|
|
<Search />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<Suspense key={query} fallback={"loading...."}>
|
2025-01-06 12:49:13 +05:00
|
|
|
<AdminDevicesTable parentalControl={true} searchParams={searchParams} />
|
2025-01-01 23:48:56 +05:00
|
|
|
</Suspense>
|
2024-11-30 23:38:32 +05:00
|
|
|
</div>
|
|
|
|
);
|
2024-11-27 14:18:17 +05:00
|
|
|
}
|