Files
threadcount-community/app/my/(app)/waitlist/page.tsx
T
ThreadCount a6f1059ddf ThreadCount Community edition
Uniform stock management for healthcare linen rooms: the coordinator app, the phone counter and the staff app, for your own server. Built from a113353 on 2026-09-15. Licensed under the Functional Source License (FSL-1.1-ALv2).
2026-09-15 22:54:09 +10:00

16 lines
655 B
TypeScript

import { notFound, redirect } from "next/navigation";
import { currentStaff } from "@/lib/staffsession";
import { waitlistData } from "@/lib/cycledata";
import WaitlistScreen from "@/components/screens/Waitlist";
export const dynamic = "force-dynamic";
export default async function MyWaitlist({ searchParams }: { searchParams: Promise<{ item?: string; si?: string }> }) {
const sess = await currentStaff();
if (!sess) redirect("/my/signin");
const { item, si } = await searchParams;
const data = await waitlistData(sess, String(item || ""), parseInt(String(si ?? "-1"), 10));
if (!data) notFound();
return <WaitlistScreen data={data} />;
}