You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
435 B
20 lines
435 B
"use client";
|
|
|
|
import { Search } from "@/components/Search";
|
|
import { Component } from "@/typings/component";
|
|
import { useSearchParams } from "next/navigation";
|
|
|
|
export const SearchPage: Component = () => {
|
|
const searchParams = useSearchParams();
|
|
|
|
const query = searchParams.get("search_query");
|
|
|
|
return (
|
|
<>
|
|
<div className="container mx-auto py-4">
|
|
<Search initialQueryValue={query || undefined} />
|
|
</div>
|
|
</>
|
|
);
|
|
};
|