29 lines
681 B
TypeScript
29 lines
681 B
TypeScript
'use server';
|
|
import React from "react";
|
|
import DashboardLayout from "@/components/layouts/DashboardLayout";
|
|
import { useDashboardPage } from "@/components/common/hooks/useDashboardPage";
|
|
|
|
async function ApplicationPage({
|
|
searchParams,
|
|
}: {
|
|
searchParams: Promise<{ [key: string]: string | undefined }>;
|
|
}) {
|
|
const {
|
|
activePage,
|
|
searchParamsInstance,
|
|
lang,
|
|
PageComponent,
|
|
} = await useDashboardPage({
|
|
pageUrl: "/application",
|
|
searchParams,
|
|
});
|
|
|
|
return (
|
|
<DashboardLayout lang={lang} activePage={activePage}>
|
|
<PageComponent lang={lang} queryParams={searchParamsInstance} />
|
|
</DashboardLayout>
|
|
);
|
|
}
|
|
|
|
export default ApplicationPage;
|