2020-03-27 13:59:38 -07:00
|
|
|
import React from 'react';
|
2021-07-30 14:05:54 -07:00
|
|
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
|
|
import PropTypes from 'prop-types';
|
2021-11-03 18:35:40 -07:00
|
|
|
import Column from 'soapbox/components/column';
|
2021-07-30 14:05:54 -07:00
|
|
|
import ColumnHeader from 'soapbox/components/column_header';
|
2020-05-28 15:52:07 -07:00
|
|
|
import SearchContainer from 'soapbox/features/compose/containers/search_container';
|
|
|
|
import SearchResultsContainer from 'soapbox/features/compose/containers/search_results_container';
|
2020-03-27 13:59:38 -07:00
|
|
|
|
2021-07-30 14:05:54 -07:00
|
|
|
const messages = defineMessages({
|
|
|
|
heading: { id: 'column.search', defaultMessage: 'Search' },
|
|
|
|
});
|
|
|
|
|
|
|
|
const Search = ({ intl }) => (
|
2021-11-03 18:35:40 -07:00
|
|
|
<Column className='search-page'>
|
2021-07-30 14:05:54 -07:00
|
|
|
<ColumnHeader icon='search' title={intl.formatMessage(messages.heading)} />
|
2021-10-14 10:38:52 -07:00
|
|
|
<SearchContainer autoFocus autoSubmit />
|
2021-10-08 09:08:47 -07:00
|
|
|
<SearchResultsContainer />
|
2021-11-03 18:35:40 -07:00
|
|
|
</Column>
|
2020-03-27 13:59:38 -07:00
|
|
|
);
|
|
|
|
|
2021-07-30 14:05:54 -07:00
|
|
|
Search.propTypes = {
|
|
|
|
intl: PropTypes.object.isRequired,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default injectIntl(Search);
|