import React, { useEffect } from "react"; import { isAndroid, isIOS } from "react-device-detect"; const App = () => { useEffect(() => { if (isAndroid) { const url = "intent://instagram.com/#Intent;scheme=https;package=com.instagram.android;end"; window.location.replace(url); } else if (isIOS) { window.location.replace("instagram://"); setTimeout(() => { window.location.replace( "https://apps.apple.com/us/app/instagram/id389801252" ); }, 10000); } else { window.location.replace("https://dorento.org"); } }, []); return (