import { useState } from "react"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { FiX } from "@calcom/ui/components/icon"; export default function AddToHomescreen() { const { t } = useLocale(); const [closeBanner, setCloseBanner] = useState(false); if (typeof window !== "undefined") { if (window.matchMedia("(display-mode: standalone)").matches) { return null; } } return !closeBanner ? (
{t("add_to_homescreen")}