344b1701dd
Uniform stock management for healthcare linen rooms. Licensed under the GNU AGPL v3.
14 lines
445 B
TypeScript
14 lines
445 B
TypeScript
import { redirect } from "next/navigation";
|
|
import { currentStaff } from "@/lib/staffsession";
|
|
import { catalogueData } from "@/lib/staffdata";
|
|
import ShelfScreen from "@/components/screens/Shelf";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
export default async function MyShelf() {
|
|
const sess = await currentStaff();
|
|
if (!sess) redirect("/my/signin");
|
|
const { items } = await catalogueData(sess);
|
|
return <ShelfScreen items={items} />;
|
|
}
|