bigbuffet-rw/app/soapbox/features/search/index.js

30 lines
891 B
JavaScript
Raw Normal View History

2020-03-27 13:59:38 -07:00
import React from 'react';
import { defineMessages, injectIntl } from 'react-intl';
import PropTypes from 'prop-types';
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
const messages = defineMessages({
heading: { id: 'column.search', defaultMessage: 'Search' },
});
const Search = ({ intl }) => (
2020-03-27 13:59:38 -07:00
<div className='column search-page'>
<SearchContainer />
<ColumnHeader icon='search' title={intl.formatMessage(messages.heading)} />
2020-03-27 13:59:38 -07:00
<div className='drawer__pager'>
<div className='drawer__inner darker'>
<SearchResultsContainer />
</div>
</div>
</div>
);
Search.propTypes = {
intl: PropTypes.object.isRequired,
};
export default injectIntl(Search);