import Script from "next/script"; import { trpc } from "@calcom/trpc/react"; declare global { interface Window { // eslint-disable-next-line @typescript-eslint/no-explicit-any fcWidget: any; } } // eslint-disable-next-line turbo/no-undeclared-env-vars const host = process.env.NEXT_PUBLIC_FRESHCHAT_HOST; // eslint-disable-next-line turbo/no-undeclared-env-vars const token = process.env.NEXT_PUBLIC_FRESHCHAT_TOKEN; export const isFreshChatEnabled = host !== "undefined" && token !== "undefined"; export default function FreshChatScript() { const { data } = trpc.viewer.me.useQuery(); return (