mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-07-01 15:23:58 +00:00
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 7m51s
40 lines
900 B
TypeScript
40 lines
900 B
TypeScript
import { AdminDevicesTable } from "@/components/admin/admin-devices-table";
|
|
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 || "";
|
|
return (
|
|
<div>
|
|
<div className="flex justify-between items-center border rounded-md border-dashed font-bold title-bg py-4 px-2 mb-4">
|
|
<h3 className="text-sarLinkOrange text-2xl">
|
|
User Devices
|
|
</h3>
|
|
</div>
|
|
|
|
<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...."}>
|
|
<AdminDevicesTable parentalControl={true} searchParams={searchParams} />
|
|
</Suspense>
|
|
</div>
|
|
);
|
|
}
|