Files
ota-admin-portal/src/components/BulkActions/Modal.jsx
Tristan Timblin 754e445c09 CEC-4640: add bulk add to fleet (#384)
* refactor bulkactions component

* refactor bulk actions

* update dom tests

* add addToFleet hook

* make signal optional

* implement code splitting

* add deps

* remove test label
2023-07-10 17:30:11 -04:00

44 lines
718 B
JavaScript

import {
Button,
Dialog,
DialogTitle,
DialogActions,
DialogContent,
} from '@material-ui/core';
export const Modal = ({
open,
close,
submit,
title,
children,
}) => {
return (
<Dialog
open={open}
onClose={close}
>
<DialogTitle id="alert-dialog-title">
{title}
</DialogTitle>
<DialogContent>
{children}
</DialogContent>
<DialogActions>
<Button
onClick={close}
>
Cancel
</Button>
<Button
variant="contained"
color="secondary"
onClick={submit}
autoFocus
>
Submit
</Button>
</DialogActions>
</Dialog>
)
}