import React, { useEffect, useRef } from 'react'; import styles from './InstallWindow.module.css'; import { toast } from 'react-toastify'; import { toastOptions } from './Toasts'; interface InstallWindowProps { manifestUrl: string | null; setManifestUrl: (url: string | null) => void; } const InstallWindow: React.FC = ({ manifestUrl, setManifestUrl, }) => { const ref = useRef(null); useEffect(() => { const handleOutSideClick = (event: MouseEvent) => { if (!ref.current?.contains(event.target as Node)) { setManifestUrl(null); } }; window.addEventListener('mousedown', handleOutSideClick); return () => { window.removeEventListener('mousedown', handleOutSideClick); }; }, [ref, setManifestUrl]); return (

Install Addon

Click the buttons below to install the addon

Stremio Stremio Web
); }; export default InstallWindow;