'use client'; import { FC } from 'react'; import { AnimatePresence, motion } from 'framer-motion'; import Credits from '@/components/Movie/components/Credits'; import ToggleTrailer from '@/components/Movie/components/Trailer'; import { Separator } from '@/components/ui/separator'; import { cn } from '@/lib/utils'; import Card from '../Card'; import Actions from './components/Actions'; interface Props { movie?: Movie; className?: string; direction?: number; onClose?: () => void; } const variants = { enter: (direction: number) => ({ scale: direction === 0 ? 1 : 0.8, opacity: direction === 0 ? 1 : 0, x: direction === 0 ? 0 : direction * 300 }), center: { x: 0, opacity: 1, y: 0, scale: 1 }, exit: (direction: number) => ({ scale: 0.8, opacity: 1, x: direction * -300 }) }; const Preview: FC = ({ movie, className, direction, onClose }) => { if (!movie) return null; return (
{movie.overview}
); }; export default Preview;