import { motion } from "framer-motion";
import type { PropsWithChildren } from "react";

type PageEnterProps = PropsWithChildren<{
  className?: string;
}>;

export default function PageEnter({ children, className }: PageEnterProps) {
  return (
    <motion.div
      className={className}
      initial={{ opacity: 0, y: 16 }}
      animate={{ opacity: 1, y: 0 }}
      transition={{ duration: 0.7, ease: "easeOut" }}
    >
      {children}
    </motion.div>
  );
}
