import { defineMessages, useIntl } from 'react-intl';

import Stack from 'soapbox/components/ui/stack.tsx';
import Text from 'soapbox/components/ui/text.tsx';

const messages = defineMessages({
  title: { id: 'chat_search.blankslate.title', defaultMessage: 'Start a chat' },
  body: { id: 'chat_search.blankslate.body', defaultMessage: 'Search for someone to chat with.' },
});

const Blankslate = () => {
  const intl = useIntl();

  return (
    <Stack justifyContent='center' alignItems='center' space={2} className='mx-auto h-full w-2/3'>
      <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;