bigbuffet-rw/app/soapbox/features/server-info/index.tsx

39 lines
946 B
TypeScript
Raw Normal View History

import React from 'react';
import { defineMessages, useIntl } from 'react-intl';
import { Column, Divider, Stack, Text } from 'soapbox/components/ui';
import { useAppSelector } from 'soapbox/hooks';
2022-11-16 05:32:32 -08:00
import LinkFooter from '../ui/components/link-footer';
import PromoPanel from '../ui/components/promo-panel';
const messages = defineMessages({
heading: { id: 'column.info', defaultMessage: 'Server information' },
});
const ServerInfo = () => {
const intl = useIntl();
const instance = useAppSelector((state) => state.instance);
return (
<Column label={intl.formatMessage(messages.heading)}>
<Stack space={4}>
<Stack>
<Text size='lg' weight='medium'>{instance.title}</Text>
<Text theme='muted'>{instance.description}</Text>
</Stack>
<Divider />
<PromoPanel />
<Divider />
<LinkFooter />
</Stack>
</Column>
);
};
export default ServerInfo;