'use client'; import { motion, AnimatePresence } from 'framer-motion'; import { usePathname } from 'next/navigation'; import React from 'react'; interface PageTransitionProps { children: React.ReactNode; enabled: boolean; } /** * Provides smooth page transitions using framer-motion. * Can be toggled on/off via gallery.yaml. */ export function PageTransition({ children, enabled }: PageTransitionProps) { const pathname = usePathname(); if (!enabled) { return <>{children}; } return ( {children} ); }