Spaces:
Paused
Paused
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 */} | |
<HomeHeader /> | |
{/* body */} | |
<div className="flex flex-col items-center mt-24"> | |
<Image | |
width="300" | |
height="100" | |
src="https://upload.wikimedia.org/wikinews/en/archive/0/0c/20050620003808%21Google_logo_png.png" | |
/> | |
<HomeSearch/> | |
</div> | |
</> | |
); | |
} | |
export async function getServerSideProps(context) { | |
// You can access the query parameters of the request with context.query | |
const searchParams = context.query; | |
// TODO: Perform any necessary operations with searchParams | |
// Return searchParams as a prop to your page | |
return { props: { searchParams } }; | |
} |