diff --git a/vault/components/page-transition.tsx b/vault/components/page-transition.tsx new file mode 100644 index 0000000..a9fe9a3 --- /dev/null +++ b/vault/components/page-transition.tsx @@ -0,0 +1,28 @@ +"use client"; + +import { AnimatePresence, motion } from "framer-motion"; +import { usePathname } from "next/navigation"; +import { ReactNode } from "react"; + +export function PageTransition({ children }: { children: ReactNode }) { + const pathname = usePathname(); + + return ( + + + {children} + + + ); +}