feat: type ElemenInfo

This commit is contained in:
karishmas6
2024-07-27 02:06:05 +05:30
parent 8a6ac12494
commit a3809a9bb2

View File

@@ -8,6 +8,15 @@ import { useActionContext } from '../../context/browserActions';
import { useBrowserSteps } from '../../context/browserSteps';
import { ConfirmationBox } from "../atoms/ConfirmationBox";
interface ElementInfo {
tagName: string;
hasOnlyText?: boolean;
innerText?: string;
url?: string;
imageUrl?: string;
}
export const BrowserWindow = () => {
const [canvasRef, setCanvasReference] = useState<React.RefObject<HTMLCanvasElement> | undefined>(undefined);
const [screenShot, setScreenShot] = useState<string>("");