2021-01-26 19:14:57 +00:00
|
|
|
import React from 'react';
|
|
|
|
import PopupBase from '../PopupBase';
|
|
|
|
import {Button} from '../../GPElements/Button';
|
|
|
|
|
2021-03-14 14:51:53 +00:00
|
|
|
interface Props {
|
2021-01-26 19:14:57 +00:00
|
|
|
onHide: (_: void) => void;
|
|
|
|
submit: (_: void) => void;
|
|
|
|
}
|
|
|
|
|
2021-03-14 14:51:53 +00:00
|
|
|
export default function SubmitPopup(props: Props): JSX.Element {
|
2021-01-26 19:14:57 +00:00
|
|
|
return (
|
|
|
|
<PopupBase title='Are you sure?' onHide={props.onHide} height='160px' width='300px'>
|
2021-03-14 14:51:53 +00:00
|
|
|
<Button title='Submit' color={{backgroundColor: 'green'}} onClick={(): void => props.submit()} />
|
|
|
|
<Button title='Cancel' color={{backgroundColor: 'red'}} onClick={(): void => props.onHide()} />
|
2021-01-26 19:14:57 +00:00
|
|
|
</PopupBase>
|
|
|
|
);
|
|
|
|
}
|