"use client"; import { motion, useReducedMotion } from "framer-motion"; import { usePathname } from "next/navigation"; import type { ReactNode } from "react"; /** * Next.js re-mounts a `template` on every navigation, so this wrapper runs its * enter animation each time the visitor moves between pages (via the dock or * any link) — giving one unified page transition instead of per-element * entrance animations. */ export default function SiteTemplate({ children }: { children: ReactNode }) { const reducedMotion = useReducedMotion(); const pathname = usePathname(); return ( {children} ); }