Skip to content

Commit fd437ab

Browse files
committed
Set searchParams
1 parent bd35c8c commit fd437ab

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

app/skybox/[slug]/page.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ export async function generateStaticParams() {
1212
return Object.keys(allData).map((slug) => ({ slug }));
1313
}
1414

15-
interface PageProps {
15+
export default function SkyboxPage({
16+
params,
17+
searchParams,
18+
}: {
1619
params: { slug: string };
17-
searchParams?: { [key: string]: string | string[] | undefined };
18-
}
19-
20-
export default async function SkyboxPage({ params }: PageProps) {
20+
searchParams?: Record<string, string | string[] | undefined>;
21+
}) {
2122
const dataPath = path.join(process.cwd(), 'public', 'data', `${params.slug}.json`);
2223
const skyboxData = JSON.parse(fs.readFileSync(dataPath, 'utf8'));
2324

0 commit comments

Comments
 (0)