2026-08-25 07:51:38 +02:00
|
|
|
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
|
|
|
|
import { DevicesTable } from "@/components/devices/DevicesTable";
|
|
|
|
|
import { listDevices } from "@/lib/db/queries/devices";
|
|
|
|
|
|
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
|
|
|
|
|
|
export default async function DevicesPage() {
|
|
|
|
|
const devices = await listDevices();
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className="flex flex-col gap-6">
|
|
|
|
|
<div>
|
2026-08-25 16:43:28 +02:00
|
|
|
<h1 className="font-heading text-2xl font-semibold">Devices</h1>
|
2026-08-25 07:51:38 +02:00
|
|
|
<p className="text-sm text-muted-foreground">Devices seen across past sessions. Give them friendlier names.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<Card className="bp-glass">
|
|
|
|
|
<CardHeader>
|
|
|
|
|
<CardTitle className="text-base">Known devices</CardTitle>
|
|
|
|
|
</CardHeader>
|
|
|
|
|
<CardContent>
|
|
|
|
|
<DevicesTable devices={devices} />
|
|
|
|
|
</CardContent>
|
|
|
|
|
</Card>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|