import styled from '@emotion/styled'; import {browserHistory} from 'sentry/utils/browserHistory'; 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')` flex-grow: 1; min-width: 400px; @media (max-width: ${p => p.theme.breakpoints.small}) { min-width: auto; } `;