diff --git a/src/components/molecules/BrowserRecordingSave.tsx b/src/components/molecules/BrowserRecordingSave.tsx index 109c704b..80779cad 100644 --- a/src/components/molecules/BrowserRecordingSave.tsx +++ b/src/components/molecules/BrowserRecordingSave.tsx @@ -1,13 +1,15 @@ -import React from 'react' +import React, { useState } from 'react' import { Paper, Grid, IconButton, Button, Box } from '@mui/material'; import { SaveRecording } from "./SaveRecording"; import { Circle, Add, Logout, Clear } from "@mui/icons-material"; import { useGlobalInfoStore } from '../../context/globalInfo'; import { stopRecording } from "../../api/recording"; import { Link, useLocation, useNavigate } from 'react-router-dom'; +import { GenericModal } from "../atoms/GenericModal"; const BrowserRecordingSave = () => { + const [openModal, setOpenModal] = useState(false); const { recordingName, browserId, setBrowserId, notify } = useGlobalInfoStore(); const navigate = useNavigate(); @@ -37,9 +39,22 @@ const BrowserRecordingSave = () => { display: 'flex', justifyContent: 'space-between', }}> - + setOpenModal(false)} modalStyle={modalStyle}> + +

Are you sure you want to discard the recording?

+ + + + +
+
@@ -47,4 +62,16 @@ const BrowserRecordingSave = () => { ); } -export default BrowserRecordingSave \ No newline at end of file +export default BrowserRecordingSave + +const modalStyle = { + top: '25%', + left: '50%', + transform: 'translate(-50%, -50%)', + width: '30%', + backgroundColor: 'background.paper', + p: 4, + height: 'fit-content', + display: 'block', + padding: '20px', +}; \ No newline at end of file