'use client';
import { useSearchParams } from 'next/navigation';
import List from '@/components/Movie/List';
import useStarring from './useStarring';
export default function Container() {
const params = useSearchParams();
const title = params.get('title');
const actorId = params.get('actorId') || undefined;
const { data: top, hasNextPage, fetchNextPage, isFetched } = useStarring({ actorId });
return (
<>
{Boolean(title) && (
Starring: {decodeURIComponent(title || '')}
)}
{isFetched && !top?.pages?.[0]?.results?.length && (