7d650e4c10
Uniform stock management for healthcare linen rooms: the coordinator app, the phone counter and the staff app, for your own server. Built from d947f89 on 2026-09-15. Licensed under the Functional Source License (FSL-1.1-ALv2).
14 lines
548 B
TypeScript
14 lines
548 B
TypeScript
import { redirect } from "next/navigation";
|
|
import { currentStaff } from "@/lib/staffsession";
|
|
import { catalogueData, damageData } from "@/lib/staffdata";
|
|
import DamageScreen from "@/components/screens/Damage";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
export default async function MyDamage() {
|
|
const sess = await currentStaff();
|
|
if (!sess) redirect("/my/signin");
|
|
const [{ holdings }, { managerName }] = await Promise.all([damageData(sess), catalogueData(sess)]);
|
|
return <DamageScreen holdings={holdings} managerName={managerName} />;
|
|
}
|