import { XIcon } from "@heroicons/react/outline"; import { useState } from "react"; export default function AddToHomescreen() { const [closeBanner, setCloseBanner] = useState(false); if (typeof window !== "undefined") { if (window.matchMedia("(display-mode: standalone)").matches) { return null; } } return !closeBanner ? (
Add this app to your home screen for faster access and improved experience.