import React, { useState } from "react"; import "./iframe-styles.scss"; import clsx from "clsx"; interface IframeProps { iframeURL: string; } const Iframe: React.FC = ({ iframeURL }) => { const [isLoading, setIsLoading] = useState(true); const handleIframeLoad = () => { setIsLoading(false); }; return (
{isLoading &&
}