diff --git a/next/pages/_app.tsx b/next/pages/_app.tsx index af9cd85..97d10c8 100644 --- a/next/pages/_app.tsx +++ b/next/pages/_app.tsx @@ -1,16 +1,19 @@ import {AppProps} from 'next/app' import Head from 'next/head' import {MantineProvider} from '@mantine/core' +import {useState} from 'react' import Navbar from '../components/Navbar' import {theme} from '../lib/theme' import '../global.css' -import ChatBot from '../components/Chatbot/Chatbot' +import ChatBotPopup from '../components/Chatbot' export default function App(props: AppProps) { const {Component, pageProps} = props + const [chatbotPopupOpened, setChatbotPopupOpened] = useState(false) + return ( <> @@ -23,9 +26,9 @@ export default function App(props: AppProps) { withNormalizeCSS theme={theme} > - - + { setChatbotPopupOpened(true) }} /> + )