2024-12-22 21:34:57 +05:00
|
|
|
import { DevicesTable } from "@/components/devices-table";
|
|
|
|
import Search from "@/components/search";
|
2024-12-25 17:21:04 +05:00
|
|
|
import { Suspense } from "react";
|
|
|
|
|
2024-12-22 21:34:57 +05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default async function ParentalControl({
|
|
|
|
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-b-2 text-gray-500 text-2xl font-bold title-bg py-4 px-2 mb-4">
|
|
|
|
<h3>
|
|
|
|
Parental Control
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div
|
|
|
|
id="user-filters"
|
|
|
|
className=" border-b-2 pb-4 gap-4 flex sm:flex-row flex-col items-start justify-start"
|
|
|
|
>
|
|
|
|
<Search />
|
2024-12-25 17:21:04 +05:00
|
|
|
|
2024-12-22 21:34:57 +05:00
|
|
|
</div>
|
|
|
|
<Suspense key={query} fallback={"loading...."}>
|
|
|
|
<DevicesTable parentalControl={true} searchParams={searchParams} />
|
|
|
|
</Suspense>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|