2022-10-26 22:28:55 +02:00
|
|
|
import { AppProps } from 'next/app'
|
2021-11-16 17:47:12 +01:00
|
|
|
import Link from 'next/link'
|
|
|
|
|
|
|
|
import '../styles/global.css'
|
|
|
|
|
2022-10-26 22:28:55 +02:00
|
|
|
const MyApp = ({ Component, pageProps, router }: AppProps) => {
|
2021-11-16 17:47:12 +01:00
|
|
|
const pathname = router.pathname
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<Component {...pageProps} />
|
2022-10-26 22:28:55 +02:00
|
|
|
{pathname !== '/' && <Link href="/">See all examples</Link>}
|
2021-11-16 17:47:12 +01:00
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default MyApp
|