1bc2de655a
Uniform stock management for healthcare linen rooms. Licensed under the GNU AGPL v3.
13 lines
397 B
TypeScript
13 lines
397 B
TypeScript
import { redirect } from "next/navigation";
|
|
import { currentStaff } from "@/lib/staffsession";
|
|
import { kitData } from "@/lib/staffdata";
|
|
import KitScreen from "@/components/screens/Kit";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
export default async function MyKit() {
|
|
const sess = await currentStaff();
|
|
if (!sess) redirect("/my/signin");
|
|
return <KitScreen data={await kitData(sess)} />;
|
|
}
|