rsnext/examples/script-component/pages/_app.tsx

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
360 B
TypeScript
Raw Normal View History

import { AppProps } from "next/app";
import Link from "next/link";
import "../styles/global.css";
const MyApp = ({ Component, pageProps, router }: AppProps) => {
const pathname = router.pathname;
return (
<>
<Component {...pageProps} />
{pathname !== "/" && <Link href="/">See all examples</Link>}
</>
);
};
export default MyApp;