import type { Metadata } from "next";
import { PageHeader, Tag } from "@/components/status";
import { Card, CardContent } from "@/components/ui/card";
import { api, unwrap } from "@/lib/api";
export const metadata: Metadata = { title: "Rooms" };
export default async function Rooms() {
const { rooms } = await api.rooms.get().then(unwrap);
return (
<>
No rooms listed yet.
{r.owner.username} ยท {r.occupancy}/{r.capacity}
{r.description &&{r.description}
} {r.t5de.length > 0 && (Here now: {r.t5de.map((u) => u.username).join(", ")}
)}