mirror of
https://github.com/vercel/commerce.git
synced 2025-03-15 06:52:32 +00:00
16 lines
348 B
TypeScript
16 lines
348 B
TypeScript
import { FC } from 'react'
|
|
import type { AppProps } from 'next/app'
|
|
import '@assets/global.css'
|
|
|
|
const Noop: FC = ({ children }) => <>{children}</>
|
|
|
|
export default function MyApp({ Component, pageProps }: AppProps) {
|
|
const Layout = (Component as any).Layout || Noop
|
|
|
|
return (
|
|
<Layout>
|
|
<Component {...pageProps} />
|
|
</Layout>
|
|
)
|
|
}
|