2022-09-13 08:55:13 -07:00
|
|
|
import React from 'react';
|
2022-09-14 07:35:32 -07:00
|
|
|
import { defineMessages, useIntl } from 'react-intl';
|
2022-09-13 08:55:13 -07:00
|
|
|
|
|
|
|
import { Stack, Text } from 'soapbox/components/ui';
|
|
|
|
|
2022-09-14 07:35:32 -07:00
|
|
|
const messages = defineMessages({
|
2022-12-07 13:52:51 -08:00
|
|
|
title: { id: 'chat_search.blankslate.title', defaultMessage: 'Start a chat' },
|
|
|
|
body: { id: 'chat_search.blankslate.body', defaultMessage: 'Search for someone to chat with.' },
|
2022-09-14 07:35:32 -07:00
|
|
|
});
|
|
|
|
|
|
|
|
const Blankslate = () => {
|
|
|
|
const intl = useIntl();
|
|
|
|
|
|
|
|
return (
|
2023-02-01 14:13:42 -08:00
|
|
|
<Stack justifyContent='center' alignItems='center' space={2} className='mx-auto h-full w-2/3'>
|
2022-09-14 07:35:32 -07:00
|
|
|
<Text weight='bold' size='lg' align='center'>
|
|
|
|
{intl.formatMessage(messages.title)}
|
|
|
|
</Text>
|
|
|
|
<Text theme='muted' align='center'>
|
|
|
|
{intl.formatMessage(messages.body)}
|
|
|
|
</Text>
|
|
|
|
</Stack>
|
|
|
|
);
|
|
|
|
};
|
2022-09-13 08:55:13 -07:00
|
|
|
|
|
|
|
export default Blankslate;
|