29 lines
891 B
JavaScript
29 lines
891 B
JavaScript
import React from 'react';
|
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
import PropTypes from 'prop-types';
|
|
import ColumnHeader from 'soapbox/components/column_header';
|
|
import SearchContainer from 'soapbox/features/compose/containers/search_container';
|
|
import SearchResultsContainer from 'soapbox/features/compose/containers/search_results_container';
|
|
|
|
const messages = defineMessages({
|
|
heading: { id: 'column.search', defaultMessage: 'Search' },
|
|
});
|
|
|
|
const Search = ({ intl }) => (
|
|
<div className='column search-page'>
|
|
<SearchContainer />
|
|
|
|
<ColumnHeader icon='search' title={intl.formatMessage(messages.heading)} />
|
|
<div className='drawer__pager'>
|
|
<div className='drawer__inner darker'>
|
|
<SearchResultsContainer />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
|
|
Search.propTypes = {
|
|
intl: PropTypes.object.isRequired,
|
|
};
|
|
|
|
export default injectIntl(Search);
|