21 lines
425 B
TypeScript
21 lines
425 B
TypeScript
import { SearchList } from "@/components/molecules/SearchMovies";
|
|
|
|
export default async function SearchPage({
|
|
searchParams,
|
|
}: {
|
|
searchParams: Promise<{ s: string }>;
|
|
}) {
|
|
const { s } = await searchParams;
|
|
|
|
return (
|
|
<>
|
|
<section className="container">
|
|
<h1 className="text-2xl">
|
|
Wyszukiwanie: <strong>{s}</strong>
|
|
</h1>
|
|
</section>
|
|
<SearchList query={s} />
|
|
</>
|
|
);
|
|
}
|