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

26 lines
849 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 Column from 'soapbox/components/column';
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 }) => (
<Column className='search-page'>
<ColumnHeader icon='search' title={intl.formatMessage(messages.heading)} />
2021-10-14 10:38:52 -07:00
<SearchContainer autoFocus autoSubmit />
<SearchResultsContainer />
</Column>
2020-03-27 13:59:38 -07:00
);
Search.propTypes = {
intl: PropTypes.object.isRequired,
};
export default injectIntl(Search);