'use client' import React from 'react' import NavBar from './NavBar' import Footer, { footerHeight } from './Footer' import { Box, useTheme } from '@mui/material' <§animations§>import { motion } from 'framer-motion' import { usePathname } from 'next/navigation' interface PageLayoutProps { children?: React.ReactNode } export default function PageLayout(props: PageLayoutProps) { const theme = useTheme() <§animations§>const pathname = usePathname() // content slides in from bottom on page change const variants = { hidden: { opacity: 0, y: 100 }, enter: { opacity: 1, y: 0 }, exit: { opacity: 0, y: -100 }, } return ( <§animations§> {props.children} <§animations§>