Manuelle reports
This commit is contained in:
21
apps/hub/app/(app)/admin/report/new/page.tsx
Normal file
21
apps/hub/app/(app)/admin/report/new/page.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { NewReportForm } from "(app)/admin/report/_components/NewReport";
|
||||
|
||||
const Page = async ({
|
||||
searchParams,
|
||||
}: {
|
||||
searchParams?: {
|
||||
[key: string]: string | undefined;
|
||||
};
|
||||
}) => {
|
||||
const params = await searchParams;
|
||||
console.log("searchParams", params);
|
||||
return (
|
||||
<NewReportForm
|
||||
defaultValues={{
|
||||
reportedUserId: params?.reportedUserId || "",
|
||||
}}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default Page;
|
||||
Reference in New Issue
Block a user