'use client' import { ReactNode } from 'react' import { motion, AnimatePresence } from 'framer-motion' interface SlideContainerProps { children: ReactNode slideKey: string direction: number } const variants = { enter: (direction: number) => ({ x: direction > 0 ? '30%' : '-30%', opacity: 0, scale: 0.95, }), center: { x: 0, opacity: 1, scale: 1, }, exit: (direction: number) => ({ x: direction < 0 ? '30%' : '-30%', opacity: 0, scale: 0.95, }), } export default function SlideContainer({ children, slideKey, direction }: SlideContainerProps) { return (
{children}
) }