index.tsx 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import {t} from 'sentry/locale';
  2. import {ToolbarHeading, ToolbarSection} from './styles';
  3. interface ExploreToolbarProps {}
  4. export function ExploreToolbar({}: ExploreToolbarProps) {
  5. return (
  6. <div>
  7. <ToolbarResults />
  8. <ToolbarVisualize />
  9. <ToolbarSortBy />
  10. <ToolbarLimitTo />
  11. <ToolbarGroupBy disabled />
  12. </div>
  13. );
  14. }
  15. interface ToolbarResultsProps {}
  16. function ToolbarResults({}: ToolbarResultsProps) {
  17. return (
  18. <ToolbarSection>
  19. <ToolbarHeading>{t('Results')}</ToolbarHeading>
  20. </ToolbarSection>
  21. );
  22. }
  23. interface ToolbarVisualizeProps {}
  24. function ToolbarVisualize({}: ToolbarVisualizeProps) {
  25. return (
  26. <ToolbarSection>
  27. <ToolbarHeading>{t('Visualize')}</ToolbarHeading>
  28. </ToolbarSection>
  29. );
  30. }
  31. interface ToolbarSortByProps {}
  32. function ToolbarSortBy({}: ToolbarSortByProps) {
  33. return (
  34. <ToolbarSection>
  35. <ToolbarHeading>{t('Sort By')}</ToolbarHeading>
  36. </ToolbarSection>
  37. );
  38. }
  39. interface ToolbarLimitToProps {}
  40. function ToolbarLimitTo({}: ToolbarLimitToProps) {
  41. return (
  42. <ToolbarSection>
  43. <ToolbarHeading>{t('Limit To')}</ToolbarHeading>
  44. </ToolbarSection>
  45. );
  46. }
  47. interface ToolbarGroupByProps {
  48. disabled?: boolean;
  49. }
  50. function ToolbarGroupBy({disabled}: ToolbarGroupByProps) {
  51. return (
  52. <ToolbarSection>
  53. <ToolbarHeading disabled={disabled}>{t('Group By')}</ToolbarHeading>
  54. </ToolbarSection>
  55. );
  56. }