'use client'; import Preview from '@/components/Movie/Preview'; import { Carousel, Measurer } from './components/Carousel'; import useRandomMovie from './useRandomMovie'; export default function Container() { const { movies, movie, index, onIndexChange } = useRandomMovie(); return ( {(width) => ( <> } />
)} ); }