import { useSession } from "next-auth/react"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { TopBanner } from "@calcom/ui"; function ImpersonatingBanner() { const { t } = useLocale(); const { data } = useSession(); if (!data?.user.impersonatedByUID) return null; return ( <> Click Here To stop } /> ); } export default ImpersonatingBanner;