File size: 829 Bytes
f850783
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c4fcec1
f850783
 
c4fcec1
f850783
 
 
 
 
 
 
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
33
34
35
36
import { Button, Card, Flex, Space, Typography } from 'antd';

import { useTranslate } from '@/hooks/common-hooks';
import styles from './index.less';

const { Paragraph } = Typography;

const BackendServiceApi = ({ show }: { show(): void }) => {
  const { t } = useTranslate('chat');

  return (
    <Card
      title={
        <Space size={'large'}>
          <span>RAGFlow API</span>
          <Button onClick={show} type="primary">
            {t('apiKey')}
          </Button>
        </Space>
      }
    >
      <Flex gap={8} align="center">
        <b>{t('backendServiceApi')}</b>
        <Paragraph
          copyable={{ text: `${location.origin}` }}
          className={styles.apiLinkText}
        >
          {location.origin}
        </Paragraph>
      </Flex>
    </Card>
  );
};

export default BackendServiceApi;