bigbuffet-rw/app/soapbox/features/search/index.js
marcin mikołajczak 055b001f74 Works fine, I think
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-07-30 23:05:54 +02:00

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);