diff --git a/src/components/ErrorConfigModal/ErrorConfigModal.tsx b/src/components/ErrorConfigModal/ErrorConfigModal.tsx new file mode 100644 index 0000000..9b2e5c6 --- /dev/null +++ b/src/components/ErrorConfigModal/ErrorConfigModal.tsx @@ -0,0 +1,40 @@ +import Modal from '@widgets/Modal' +import { ModalPropsType } from '@widgets/Modal/modal.type.ts' +import { FC } from 'react' +import { Table } from 'antd' + +interface ErrorConfigModalProps + extends Omit { + details?: { [key: string]: string } +} + +const ErrorConfigModal: FC = ({ details = {}, onClose, open }) => { + + const columns = [ + { + dataIndex: 'key', + key: 'key', + render: (text: string) => {text} + }, + { + dataIndex: 'value', + key: 'value' + } + ] + + const data = Object.keys(details).map((key) => ({ + key, + value: details[key] + })) + + return ( + +
+ + + + ) +} + +export default ErrorConfigModal \ No newline at end of file