import {browserHistory} from 'react-router'; import styled from '@emotion/styled'; import {decodeScalar} from 'sentry/utils/queryString'; import {useLocation} from 'sentry/utils/useLocation'; import useOrganization from 'sentry/utils/useOrganization'; import usePageFilters from 'sentry/utils/usePageFilters'; import ReplaySearchBar from 'sentry/views/replays/list/replaySearchBar'; export default function ReplaysSearch() { const {selection} = usePageFilters(); const {pathname, query} = useLocation(); const organization = useOrganization(); return ( { browserHistory.push({ pathname, query: { ...query, cursor: undefined, query: searchQuery.trim(), }, }); }} /> ); } const SearchContainer = styled('div')` display: grid; width: 100%; `;