import {useEffect, useRef} from 'react' import type {AppProps} from 'next/app' import {Header} from '@/components/Header' import {Footer} from '@/components/Footer' import '../styles/tailwind.css' import 'focus-visible' function usePrevious(value: string): string | null { let ref = useRef(null) useEffect(() => { ref.current = value }, [value]) return ref.current } export default function App({Component, pageProps, router}: AppProps) { let previousPathname = usePrevious(router.pathname) return ( <>
) }