18 lines
451 B
TypeScript
18 lines
451 B
TypeScript
'use client';
|
|
|
|
import useFavorites from '@/app/(site)/favorites/useFavorites';
|
|
import List from '@/components/Movie/List';
|
|
|
|
export default function Container() {
|
|
const { pages } = useFavorites();
|
|
|
|
if (!pages[0]?.results?.length)
|
|
return (
|
|
<div className='h-40 w-full flex items-center justify-center text-xl text-muted-foreground'>
|
|
There are no items in your favorites list
|
|
</div>
|
|
);
|
|
|
|
return <List pages={pages} />;
|
|
}
|