import { useState } from "react"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Icon } from "@calcom/ui"; 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")}