2023-05-05 15:23:34 +00:00
|
|
|
import React, {FC} from 'react';
|
2023-05-18 12:48:53 +00:00
|
|
|
import {useTranslation} from 'react-i18next';
|
2023-05-19 14:18:38 +00:00
|
|
|
import {Page} from '../components/Page';
|
|
|
|
import MarkdownRender from '../components/MarkdownRender';
|
|
|
|
import {observer} from 'mobx-react-lite';
|
|
|
|
import commonStore from '../stores/commonStore';
|
2023-05-05 15:23:34 +00:00
|
|
|
|
2023-05-19 14:18:38 +00:00
|
|
|
export const About: FC = observer(() => {
|
2023-05-18 12:48:53 +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-05 15:23:34 +00:00
|
|
|
);
|
2023-05-19 14:18:38 +00:00
|
|
|
});
|