메인 베너너

This commit is contained in:
mota
2025-10-13 18:06:46 +09:00
parent a1e4f76b0b
commit 329537e3ca
6 changed files with 175 additions and 45 deletions

View File

@@ -1,7 +1,8 @@
import { HeroBanner } from "@/app/components/HeroBanner";
export default function Home({ searchParams }: { searchParams?: { sort?: "recent" | "popular" } }) {
const sort = searchParams?.sort ?? "recent";
export default async function Home({ searchParams }: { searchParams: Promise<{ sort?: "recent" | "popular" } | undefined> }) {
const sp = await searchParams;
const sort = sp?.sort ?? "recent";
return (
<div className="space-y-8">
{/* 히어로 섹션: 상단 대형 비주얼 영역 */}