diff --git a/app/(dashboard)/devices/page.tsx b/app/(dashboard)/devices/page.tsx index 028e529..a3756a9 100644 --- a/app/(dashboard)/devices/page.tsx +++ b/app/(dashboard)/devices/page.tsx @@ -1,15 +1,37 @@ -import { auth } from "@/lib/auth"; -import { headers } from "next/headers"; - -export default async function Devices() { - const session = await auth.api.getSession({ - headers: await headers(), - }); +import { DevicesTable } from "@/components/devices-table"; +import Search from "@/components/search"; +import { Button } from "@/components/ui/button"; +import React, { Suspense } from "react"; +export default async function Devices({ + searchParams, +}: { + searchParams: Promise<{ + query: string; + page: number; + sortBy: string; + status: string; + }>; +}) { return (
{JSON.stringify(session?.user, null, 2)}+
{state.message}
)}