feat: Initialize project
This commit is contained in:
1 parent
eccc32337f
commit
3c1050898e
65 files changed
+5661
-596
No files matched your search
@@ -0,0 +1,21 @@
|
||||
'use client';
|
||||
|
||||
import { RefreshCcwDot } from 'lucide-react';
|
||||
|
||||
import Movie from '@/components/Movie/Preview';
|
||||
import { Button } from '@/components/ui/button';
|
||||
|
||||
import useRandomMovie from './useRandomMovie';
|
||||
|
||||
export default function Container() {
|
||||
const { movie, next } = useRandomMovie();
|
||||
|
||||
return (
|
||||
<>
|
||||
<Button className='w-full mb-2 p-2' onClick={next} title='Next movie'>
|
||||
<RefreshCcwDot size={24} strokeWidth={1} />
|
||||
</Button>
|
||||
<Movie movie={movie} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user