11"use client" ;
22
33import { useSession } from "next-auth/react" ;
4- import { usePathname , useRouter } from "next/navigation" ;
4+ import { useRouter } from "next/navigation" ;
55import type { Dispatch , ReactElement , ReactNode , SetStateAction } from "react" ;
66import React , { cloneElement } from "react" ;
77import { Toaster } from "sonner" ;
@@ -17,7 +17,6 @@ import { Button } from "@calcom/ui/components/button";
1717import { ErrorBoundary } from "@calcom/ui/components/errorBoundary" ;
1818import { SkeletonText } from "@calcom/ui/components/skeleton" ;
1919
20- import { CalAiBanner } from "./CalAiBanner" ;
2120import { DynamicModals } from "./DynamicModals" ;
2221import { SideBarContainer } from "./SideBar" ;
2322import { TopNavContainer } from "./TopNav" ;
@@ -28,7 +27,6 @@ import { useAppTheme } from "./useAppTheme";
2827
2928const Layout = ( props : LayoutProps ) => {
3029 const { banners, bannersHeight } = useBanners ( ) ;
31- const pathname = usePathname ( ) ;
3230
3331 useFormbricks ( ) ;
3432
@@ -208,7 +206,6 @@ function MainContainer({
208206 { /* show top navigation for md and smaller (tablet and phones) */ }
209207 { TopNavContainerProp }
210208 < div className = "max-w-full p-2 sm:py-4 lg:px-6" >
211- < CalAiBanner />
212209 < ErrorBoundary >
213210 { ! props . withoutMain ? < ShellMain { ...props } > { props . children } </ ShellMain > : props . children }
214211 </ ErrorBoundary >
0 commit comments