File size: 930 Bytes
f5071ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
import getSongsByTitle from "@/actions/getSongsByTitle";
import SearchInput from "@/components/SearchInput";
import Header from "@/components/Header";
import SearchContent from "./components/SearchContent";
export const revalidate = 0;
interface SearchProps {
searchParams: { title: string }
};
const Search = async ({ searchParams }: SearchProps) => {
const songs = await getSongsByTitle(searchParams.title);
return (
<div
className="
bg-neutral-900
rounded-lg
h-full
w-full
overflow-hidden
overflow-y-auto
"
>
<Header className="from-bg-neutral-900">
<div className="mb-2 flex flex-col gap-y-6">
<h1 className="text-white text-3xl font-semibold">
Search
</h1>
<SearchInput />
</div>
</Header>
<SearchContent songs={songs} />
</div>
);
}
export default Search;
|