mirror of
https://github.com/SomboChea/ui
synced 2024-11-04 21:54:30 +07:00
24 lines
754 B
TypeScript
24 lines
754 B
TypeScript
|
import React from 'react';
|
||
|
import Dialog from '@material-ui/core/Dialog';
|
||
|
import DialogActions from '@material-ui/core/DialogActions';
|
||
|
import Button from '@material-ui/core/Button';
|
||
|
import { Title, Content } from './styles';
|
||
|
|
||
|
import { Props } from './types';
|
||
|
|
||
|
const LABEL = 'CLOSE';
|
||
|
|
||
|
const RegistryInfoDialog: React.FC<Props> = ({ open = false, children, onClose }): any => (
|
||
|
<Dialog id="registryInfo--dialog-container" onClose={onClose} open={open}>
|
||
|
<Title disableTypography={true}>{'Register Info'}</Title>
|
||
|
<Content>{children}</Content>
|
||
|
<DialogActions>
|
||
|
<Button color="inherit" id="registryInfo--dialog-close" onClick={onClose}>
|
||
|
{LABEL}
|
||
|
</Button>
|
||
|
</DialogActions>
|
||
|
</Dialog>
|
||
|
);
|
||
|
|
||
|
export default RegistryInfoDialog;
|