spanSummaryControls.tsx 965 B

123456789101112131415161718192021222324252627282930313233
  1. import styled from '@emotion/styled';
  2. import {DatePageFilter} from 'sentry/components/organizations/datePageFilter';
  3. import {EnvironmentPageFilter} from 'sentry/components/organizations/environmentPageFilter';
  4. import PageFilterBar from 'sentry/components/organizations/pageFilterBar';
  5. import {space} from 'sentry/styles/space';
  6. import {SPAN_RELATIVE_PERIODS, SPAN_RETENTION_DAYS} from '../utils';
  7. export default function SpanDetailsControls() {
  8. return (
  9. <FilterActions>
  10. <PageFilterBar condensed>
  11. <EnvironmentPageFilter />
  12. <DatePageFilter
  13. relativeOptions={SPAN_RELATIVE_PERIODS}
  14. maxPickableDays={SPAN_RETENTION_DAYS}
  15. />
  16. </PageFilterBar>
  17. </FilterActions>
  18. );
  19. }
  20. const FilterActions = styled('div')`
  21. display: flex;
  22. justify-content: space-between;
  23. margin-bottom: ${space(2)};
  24. flex-direction: column;
  25. @media (min-width: ${p => p.theme.breakpoints.small}) {
  26. flex-direction: row;
  27. }
  28. `;