6.2 최근/인기 글 리스트 및 무한스크롤 연동 o

This commit is contained in:
koreacomp5
2025-10-09 16:31:46 +09:00
parent b1557851ab
commit cdafc2908f
4 changed files with 78 additions and 5 deletions

View File

@@ -1,12 +1,15 @@
import Image from "next/image";
import { QuickActions } from "@/app/components/QuickActions";
import { HeroBanner } from "@/app/components/HeroBanner";
import { PostList } from "@/app/components/PostList";
export default function Home() {
export default function Home({ searchParams }: { searchParams?: { sort?: "recent" | "popular" } }) {
const sort = searchParams?.sort ?? "recent";
return (
<div className="">
<HeroBanner />
<QuickActions />
<PostList sort={sort} />
</div>
);
}