@craftercms/studio-ui
Version:
Services, components, models & utils to build CrafterCMS authoring extensions.
88 lines (86 loc) • 3.21 kB
JavaScript
/*
* Copyright (C) 2007-2022 Crafter Software Corporation. All Rights Reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3 as published by
* the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* Copyright (C) 2007-2022 Crafter Software Corporation. All Rights Reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as published by
* the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { FormattedMessage } from 'react-intl';
import DialogBody from '../DialogBody/DialogBody';
import Table from '@mui/material/Table';
import TableHead from '@mui/material/TableHead';
import TableRow from '@mui/material/TableRow';
import TableCell from '@mui/material/TableCell';
import TableBody from '@mui/material/TableBody';
import React from 'react';
export function AuditLogEntryParametersDialogUI(props) {
const { parameters = [] } = props;
return React.createElement(
DialogBody,
null,
React.createElement(
Table,
null,
React.createElement(
TableHead,
null,
React.createElement(
TableRow,
null,
React.createElement(
TableCell,
null,
React.createElement(FormattedMessage, { id: 'words.id', defaultMessage: 'Id' })
),
React.createElement(
TableCell,
{ align: 'right' },
React.createElement(FormattedMessage, { id: 'words.type', defaultMessage: 'Type' })
),
React.createElement(
TableCell,
{ align: 'right' },
React.createElement(FormattedMessage, { id: 'words.value', defaultMessage: 'Value' })
)
)
),
React.createElement(
TableBody,
null,
parameters.map((logParameters) =>
React.createElement(
TableRow,
{ key: logParameters.targetId },
React.createElement(TableCell, { component: 'th', scope: 'row' }, logParameters.targetId),
React.createElement(TableCell, { align: 'right' }, logParameters.targetType),
React.createElement(TableCell, { align: 'right' }, logParameters.targetValue)
)
)
)
)
);
}
export default AuditLogEntryParametersDialogUI;