RWKV-Runner/frontend/src/pages/About.tsx

24 lines
710 B
TypeScript
Raw Normal View History

2023-05-22 02:52:06 +00:00
import React, { FC } from 'react';
import { useTranslation } from 'react-i18next';
import { Page } from '../components/Page';
2023-05-19 14:18:38 +00:00
import MarkdownRender from '../components/MarkdownRender';
2023-05-22 02:52:06 +00:00
import { observer } from 'mobx-react-lite';
2023-05-19 14:18:38 +00:00
import commonStore from '../stores/commonStore';
2023-05-05 15:23:34 +00:00
2023-11-07 11:27:21 +00:00
const About: FC = observer(() => {
2023-05-22 02:52:06 +00:00
const { t } = useTranslation();
2023-05-19 14:18:38 +00:00
const lang: string = commonStore.settings.language;
2023-05-18 12:48:53 +00:00
2023-05-05 15:23:34 +00:00
return (
2023-05-19 14:18:38 +00:00
<Page title={t('About')} content={
<div className="overflow-y-auto overflow-x-hidden p-1">
<MarkdownRender>
{lang in commonStore.about ? commonStore.about[lang] : commonStore.about['en']}
</MarkdownRender>
</div>
2023-05-22 02:52:06 +00:00
} />
2023-05-05 15:23:34 +00:00
);
2023-05-19 14:18:38 +00:00
});
2023-11-07 11:27:21 +00:00
export default About;