bigbuffet-rw/app/soapbox/features/chats/components/chat-search/blankslate.tsx

26 lines
800 B
TypeScript
Raw Normal View History

import React from 'react';
2022-09-14 07:35:32 -07:00
import { defineMessages, useIntl } from 'react-intl';
import { Stack, Text } from 'soapbox/components/ui';
2022-09-14 07:35:32 -07:00
const messages = defineMessages({
title: { id: 'chat_search.blankslate.title', defaultMessage: 'Search followers' },
2022-10-31 12:48:42 -07:00
body: { id: 'chat_search.blankslate.body', defaultMessage: 'You can start a chat with anyone that follows you.' },
2022-09-14 07:35:32 -07:00
});
const Blankslate = () => {
const intl = useIntl();
return (
<Stack justifyContent='center' alignItems='center' space={2} className='h-full w-2/3 mx-auto'>
<Text weight='bold' size='lg' align='center'>
{intl.formatMessage(messages.title)}
</Text>
<Text theme='muted' align='center'>
{intl.formatMessage(messages.body)}
</Text>
</Stack>
);
};
export default Blankslate;