icdp
unknown
javascript
2 years ago
466 B
6
Indexable
import { useEffect, useState } from 'react'; export default function PopInventoryEditPage() { const [url, setUrl] = useState(''); useEffect(() => { if (typeof window !== 'undefined') { const token = localStorage.getItem('accessToken'); setUrl(`https://infmb.fpt.net/icmsV2/infInvestEff/?token=${token}&navbar=false`); } }, []) return ( <> {url !== '' ? <iframe src={url} className="h-screen w-full"/> : <div/>} </> ) }
Editor is loading...