"use client"
import{AnimatePresence as l,motion as r}from"framer-motion";import{useEffect as m,useState as s}from"react";import{jsx as t}from"react/jsx-runtime";var u=({children:o,fallback:n,fadeInDuration:e=.5})=>{let[i,a]=s(!1);m(()=>{a(!0)},[]);let c=e?r.div:"div";return t(l,{children:i?t(c,{...e?{initial:{opacity:0},animate:{opacity:1},transition:{duration:e}}:{},children:o}):n||null})};export{u as a};
