import { renderResults, sliceArray } from '../utils' import CardNormal from './CardNormal' export default function CollectionSearch({ arr = [], isGenre, limit = 20, media_type = 'movie', searchTerm = '', totalResult = 0, }) { return ( <> {!isGenre ? (

{`Found ${totalResult} results for '${searchTerm}'`}

) : null}
{renderResults(sliceArray(arr, limit), CardNormal, media_type)}
) }