components.process.ConfirmDialog.js Maven / Gradle / Ivy
import { useTranslation } from 'react-i18next';
import { getProcessName } from 'components/form/utils/form-utils';
import {
Button,
Dialog,
DialogActions,
DialogContent,
DialogContentText,
DialogTitle,
useTheme,
Box,
Table,
TableBody,
TableCell,
TableRow } from '@mui/material'
import { toDisplayValue } from "components/render/utils/render";
import { useTranslator } from 'hooks/translator';
const ProcessTable = ({processInstance}) => {
const { translator, t } = useTranslator()
const cellStyle = {border: 'none'}
return (
{t('process_name')}:
{getProcessName(translator, processInstance)}
{t('starter')}:
{processInstance.starter?.username}
{t('started')}:
{toDisplayValue(processInstance.startTime)}
);
}
const ConfirmDialog = ({processInstance, onClick, open, setOpen}) => {
const {t} = useTranslation()
const theme = useTheme()
const handleClose = () => { setOpen(false) }
return (
);
}
export default ConfirmDialog;