29 lines
659 B
TypeScript
29 lines
659 B
TypeScript
import { InstlRegistPage } from "@/pages/instl-sncn";
|
|
|
|
interface InstlSncnRegistRouteProps {
|
|
searchParams: Promise<{
|
|
taskSeComCd?: string;
|
|
admdstCd?: string;
|
|
sido?: string;
|
|
gugun?: string;
|
|
}>;
|
|
}
|
|
|
|
export default async function Page({ searchParams }: InstlSncnRegistRouteProps) {
|
|
const params = await searchParams;
|
|
const taskSeComCd = params.taskSeComCd
|
|
? params.taskSeComCd.split(",").filter(Boolean)
|
|
: undefined;
|
|
|
|
return (
|
|
<InstlRegistPage
|
|
defaults={{
|
|
taskSeComCd,
|
|
admdstCd: params.admdstCd,
|
|
sido: params.sido,
|
|
gugun: params.gugun,
|
|
}}
|
|
/>
|
|
);
|
|
}
|