File size: 759 Bytes
f850783
b916b29
f850783
 
7651eb4
b916b29
 
 
5743e5f
 
 
b916b29
7ba250b
b916b29
 
 
 
 
 
7651eb4
 
b916b29
d13f144
b916b29
f850783
b916b29
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { useTranslate } from '@/hooks/common-hooks';
import { IModalProps } from '@/interfaces/common';
import { Modal } from 'antd';
import ApiContent from './api-content';

const ChatOverviewModal = ({
  visible,
  hideModal,
  id,
  idKey,
}: IModalProps<any> & { id: string; name?: string; idKey: string }) => {
  const { t } = useTranslate('chat');

  return (
    <>
      <Modal
        title={t('overview')}
        open={visible}
        onCancel={hideModal}
        cancelButtonProps={{ style: { display: 'none' } }}
        onOk={hideModal}
        width={'100vw'}
        okText={t('close', { keyPrefix: 'common' })}
      >
        <ApiContent id={id} idKey={idKey}></ApiContent>
      </Modal>
    </>
  );
};

export default ChatOverviewModal;