Skip to content

Commit 223128a

Browse files
authored
Integrate CrawlChat script and type App component
1 parent d32be71 commit 223128a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

pages/_app.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Script from "next/script";
12
import "../globals.css";
23
import { AppProps } from "next/app";
34
import { IBM_Plex_Sans } from "next/font/google";
@@ -7,10 +8,16 @@ const plex = IBM_Plex_Sans({
78
weight: ["400", "500", "600", "700"],
89
});
910

10-
export default function App({ Component, pageProps }) {
11+
export default function App({ Component, pageProps }: AppProps) {
1112
return (
1213
<main className={plex.className}>
13-
<Component {...pageProps} />
14+
<Script
15+
src="https://crawlchat.app/embed.js"
16+
id="crawlchat-script"
17+
data-id="68ac269d2961657c4b7924a9"
18+
strategy="afterInteractive"
19+
/>
20+
<Component {...pageProps} />
1421
</main>
1522
);
1623
}

0 commit comments

Comments
 (0)