'use client'; import List from '@/components/Movie/List'; import useTop from './useTop'; export default function Container() { const { data: top, hasNextPage, fetchNextPage, isFetched } = useTop(); return ( <> {isFetched && !top?.pages?.[0]?.results?.length && (
Nothing was found
)} ); }