import { Trans } from "next-i18next"; import Link from "next/link"; import { CAL_URL } from "@calcom/lib/constants"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { trpc } from "@calcom/trpc"; import { Icon, SkeletonText } from "@calcom/ui"; const ExistingGoogleCal = () => { const { t } = useLocale(); const { isLoading, data: hasGoogleCal } = trpc.viewer.appsRouter.checkForGCal.useQuery(); return (
{t("requires_google_calendar")}
<> {isLoading ? ( ) : hasGoogleCal ? ( t("connected_google_calendar") ) : ( Please connect your Google Calendar account{" "} here )}
); }; export default ExistingGoogleCal;