diff --git a/frontend/pages/chat.js b/frontend/pages/chat.js index 6ac4976..44048ad 100644 --- a/frontend/pages/chat.js +++ b/frontend/pages/chat.js @@ -20,14 +20,8 @@ import { initializeWebSocketConnection } from "../services/api/api"; import { useRouter } from "next/router"; import notif from "../assets/sounds/notif.mp3"; import notifRecieve from "../assets/sounds/notif-recieve.mp3"; -import { AiFillAccountBook } from "react-icons/ai"; -import { AiFillCamera } from "react-icons/ai"; -// import boxData from "../services/utilities/box-data"; -import { BsStarFill } from "react-icons/bs"; -import slack from ".././assets/slack.svg"; -import mail from ".././assets/mail.svg"; -import logo from "../assets/logo.svg"; -import Mail from "../components/mail"; +import useIsInIframe from "../services/utilities/useInFrame"; + import { ChatNavbar } from "../components/chatNavbar"; @@ -251,9 +245,12 @@ export default function Home() { localStorage.setItem("chatType", "chatbot"); // write logic to display bot popup }; + const isInIframe = useIsInIframe(); + + return ( <> -