refactor: clean code and remove unnecessary dependencies

This commit is contained in:
ner committed 2024-09-30 18:54:13 +03:00
1 parent eceae6fec7
commit ebf599eed6
92 files changed
+1152 -2842

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
'use client';
import Preview from '../Preview';
import Carousel from './components/Carousel';
import useRandomMovie from './useRandomMovie';
const Random = () => {
const { movies, movie, index, onIndexChange, fetchNextPage } = useRandomMovie();
return (
<Preview
show={movie}
className='bg-background rounded-md'
card={<Carousel index={index} shows={movies} onIndexChange={onIndexChange} onEndReached={fetchNextPage} />}
/>
);
};
export default Random;