components.tables.deployments.ConfirmDialog.js Maven / Gradle / Ivy
import { useTranslation } from 'react-i18next';
import {
Button,
Dialog,
DialogActions,
DialogContent,
DialogContentText,
DialogTitle,
useTheme,
Box,
Table,
TableBody,
TableCell,
TableRow } from '@mui/material'
import { toDisplayValue } from "components/render/utils/render";
const DeploymentTable = ({deployment}) => {
const { t } = useTranslation()
const cellStyle = {border: 'none'}
return (
{t('deployments.name')}:
{deployment.name}
{t('timestamp')}:
{toDisplayValue(deployment.deploymentTime)}
{t('source')}:
{deployment.source}
{t('number_of_defs')}:
{deployment.processDefinitionsCount}
);
}
const ConfirmDialog = ({deployment, onClick, open, setOpen}) => {
const {t} = useTranslation()
const theme = useTheme()
const handleClose = () => { setOpen(false) }
return (
);
}
export default ConfirmDialog;