'use client'; import { FC } from 'react'; import { User2 } from 'lucide-react'; import Image from 'next/image'; import Link from 'next/link'; import ScrollNavigation from '@/components/ScrollNavigation'; import useCredits from './useCredits'; interface Props { showId: Show['id']; showType?: Show['type']; onPersonClick?: (id: string) => void; } const Credits: FC = ({ showId, showType = 'movie', onPersonClick }) => { const { data: credits } = useCredits({ showId, showType }); return ( Boolean(credits?.length) && ( > {(setRef) => ( )} ) ); }; export default Credits;