import HomeHeader from "@/components/HomeHeader"; import HomeSearch from "@/components/HomeSearch"; import Image from "next/image"; import "@/app/globals.css"; export default function Home() { return ( <> {/* Header */} {/* body */}
); } export async function getStaticProps(context) { // You can access the query parameters of the request with context.query const searchParams = context.query; if (searchParams) { return { props: { searchParams } }; } return { props: {} }; }