car-crushers-portal/pages/mod-queue.page.server.tsx
2023-10-19 16:49:05 -04:00

21 lines
483 B
TypeScript

export async function onBeforeRender(pageContext: PageContext) {
const typePermissions = {
appeal: [1 << 0, 1 << 1],
gma: [1 << 5],
report: [1 << 5],
};
const { searchParams } = new URL(
pageContext.urlOriginal,
"http://localhost:8788"
);
const includeClosed = searchParams.get("includeClosed");
const type = searchParams.get("type");
const sort = searchParams.get("sort") ?? "asc";
return {
pageContext: {
pageProps: {},
},
};
}