c89010a4f1
Uniform stock management for healthcare linen rooms: the coordinator app, the phone counter and the staff app, for your own server. Built from f976bd5 on 2026-09-15. Licensed under the Functional Source License (FSL-1.1-ALv2).
16 lines
560 B
TypeScript
16 lines
560 B
TypeScript
import { notFound, redirect } from "next/navigation";
|
|
import { currentStaff } from "@/lib/staffsession";
|
|
import { requestData } from "@/lib/staffdata";
|
|
import ThreadScreen from "@/components/screens/Thread";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
export default async function MyOrderThread({ params }: { params: Promise<{ id: string }> }) {
|
|
const sess = await currentStaff();
|
|
if (!sess) redirect("/my/signin");
|
|
const { id } = await params;
|
|
const data = await requestData(sess, id);
|
|
if (!data) notFound();
|
|
return <ThreadScreen data={data} />;
|
|
}
|