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 { SkeletonText } from "@calcom/ui"; import { FiAlertCircle } from "@calcom/ui/components/icon"; 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;