'use client' import { SongCard, SongCardProps } from './SongCard' import { AlbumCard, AlbumCardProps } from './AlbumCard' import { ArtistCard, ArtistCardProps } from './ArtistCard' export interface SearchResultsProps { query: string songs?: SongCardProps[] albums?: AlbumCardProps[] artists?: ArtistCardProps[] isLoading?: boolean } export function SearchResults({ query, songs = [], albums = [], artists = [], isLoading = false }: SearchResultsProps) { const hasResults = songs.length > 0 || albums.length > 0 || artists.length > 0 if (isLoading) { return (

Searching...

) } if (!hasResults) { return (

No results found

We couldn't find anything for "{query}". Try different keywords or browse by genre.

) } return (
{/* Songs Section */} {songs.length > 0 && (

Songs

{songs.length} results
{songs.map(song => ( ))}
)} {/* Artists Section */} {artists.length > 0 && (

Artists

{artists.length} results
{artists.map(artist => ( ))}
)} {/* Albums Section */} {albums.length > 0 && (

Albums

{albums.length} results
{albums.map(album => ( ))}
)}
) }