mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 15:09:22 +00:00
29 lines
916 B
JavaScript
29 lines
916 B
JavaScript
import '@/styles/notion.css'
|
|
import 'rc-dropdown/assets/index.css'
|
|
import 'katex/dist/katex.min.css'
|
|
import '@/styles/globals.css'
|
|
import 'animate.css'
|
|
import BLOG from '@/blog.config'
|
|
import dynamic from 'next/dynamic'
|
|
import { GlobalContextProvider } from '@/lib/global'
|
|
|
|
const Ackee = dynamic(() => import('@/components/Ackee'), { ssr: false })
|
|
const Gtag = dynamic(() => import('@/components/Gtag'), { ssr: false })
|
|
|
|
const MyApp = ({ Component, pageProps }) => {
|
|
return (
|
|
<GlobalContextProvider>
|
|
{BLOG.isProd && BLOG?.analytics?.provider === 'ackee' && (
|
|
<Ackee
|
|
ackeeServerUrl={BLOG.analytics.ackeeConfig.dataAckeeServer}
|
|
ackeeDomainId={BLOG.analytics.ackeeConfig.domainId}
|
|
/>
|
|
)}
|
|
{BLOG.isProd && BLOG?.analytics?.provider === 'ga' && <Gtag />}
|
|
<Component {...pageProps} />
|
|
</GlobalContextProvider>
|
|
)
|
|
}
|
|
|
|
export default MyApp
|