2022-03-21 11:09:01 -07:00
|
|
|
import React from 'react';
|
|
|
|
import { defineMessages, useIntl } from 'react-intl';
|
|
|
|
|
|
|
|
import { Column } from 'soapbox/components/ui';
|
|
|
|
import Search from 'soapbox/features/compose/components/search';
|
2022-05-17 08:37:16 -07:00
|
|
|
import SearchResultsContainer from 'soapbox/features/compose/containers/search_results_container';
|
2022-03-21 11:09:01 -07:00
|
|
|
|
|
|
|
const messages = defineMessages({
|
|
|
|
heading: { id: 'column.search', defaultMessage: 'Search' },
|
|
|
|
});
|
|
|
|
|
|
|
|
const SearchPage = () => {
|
|
|
|
const intl = useIntl();
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Column label={intl.formatMessage(messages.heading)}>
|
|
|
|
<div className='space-y-4'>
|
|
|
|
<Search autoFocus autoSubmit />
|
2022-05-17 08:37:16 -07:00
|
|
|
<SearchResultsContainer />
|
2022-03-21 11:09:01 -07:00
|
|
|
</div>
|
|
|
|
</Column>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default SearchPage;
|