mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-03 13:38:00 +00:00

* rebase * i18n-1 * add error info i18n * fix * fix * refactor: 删除error.json * delete useI18n
33 lines
922 B
TypeScript
33 lines
922 B
TypeScript
import React from 'react';
|
|
import { Button, ModalFooter, ModalBody } from '@chakra-ui/react';
|
|
import MyModal from '@fastgpt/web/components/common/MyModal';
|
|
import { useTranslation } from 'next-i18next';
|
|
import Markdown from '../Markdown';
|
|
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
|
|
|
const CommunityModal = ({ onClose }: { onClose: () => void }) => {
|
|
const { t } = useTranslation();
|
|
const { feConfigs } = useSystemStore();
|
|
|
|
return (
|
|
<MyModal
|
|
isOpen={true}
|
|
onClose={onClose}
|
|
iconSrc="modal/concat"
|
|
title={t('common:system.Concat us')}
|
|
>
|
|
<ModalBody textAlign={'center'}>
|
|
<Markdown source={feConfigs?.concatMd || ''} />
|
|
</ModalBody>
|
|
|
|
<ModalFooter>
|
|
<Button variant={'whiteBase'} onClick={onClose}>
|
|
{t('common:common.Close')}
|
|
</Button>
|
|
</ModalFooter>
|
|
</MyModal>
|
|
);
|
|
};
|
|
|
|
export default CommunityModal;
|