1
0
mirror of https://github.com/SomboChea/ui synced 2024-11-04 21:54:30 +07:00
verdaccio-ui/src/components/RegistryInfoDialog/RegistryInfoDialog.tsx
2019-10-12 09:55:37 +02:00

25 lines
793 B
TypeScript

import React from 'react';
import Button from '../../muiComponents/Button';
import Dialog from '../../muiComponents/Dialog';
import DialogActions from '../../muiComponents/DialogActions';
import { Title, Content } from './styles';
import { Props } from './types';
const LABEL = 'CLOSE';
const RegistryInfoDialog: React.FC<Props> = ({ open = false, children, onClose }) => (
<Dialog data-testid={'registryInfo--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;