diff --git a/src/components/organisms/BrowserWindow.tsx b/src/components/organisms/BrowserWindow.tsx index e402dbfc..08abce9e 100644 --- a/src/components/organisms/BrowserWindow.tsx +++ b/src/components/organisms/BrowserWindow.tsx @@ -6,33 +6,8 @@ import { Highlighter } from "../atoms/Highlighter"; import { GenericModal } from '../atoms/GenericModal'; import { Button, Typography, Box } from '@mui/material'; import { useActionContext } from '../../context/browserActions'; +import { ConfirmationBox } from "../atoms/ConfirmationBox"; -interface ConfirmationBoxProps { - selector: string; - onYes: () => void; - onNo: () => void; -} - -const ConfirmationBox = ({ selector, onYes, onNo }: ConfirmationBoxProps) => { - return ( - - - Confirmation - - - Do you want to interact with the element: {selector}? - - - - - - - ); -}; export const BrowserWindow = () => { const [canvasRef, setCanvasReference] = useState | undefined>(undefined);