index.tsx 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import {Fragment} from 'react';
  2. import {InjectedRouter} from 'react-router';
  3. import {Location} from 'history';
  4. import {Client} from 'sentry/api';
  5. import {Organization, Project} from 'sentry/types';
  6. import {BuiltinSymbolSource, CustomRepo} from 'sentry/types/debugFiles';
  7. import BuiltInRepositories from './builtInRepositories';
  8. import CustomRepositories from './customRepositories';
  9. type Props = {
  10. api: Client;
  11. builtinSymbolSourceOptions: BuiltinSymbolSource[];
  12. builtinSymbolSources: string[];
  13. customRepositories: CustomRepo[];
  14. isLoading: boolean;
  15. location: Location;
  16. organization: Organization;
  17. projSlug: Project['slug'];
  18. router: InjectedRouter;
  19. };
  20. function Sources({
  21. api,
  22. organization,
  23. customRepositories,
  24. builtinSymbolSources,
  25. builtinSymbolSourceOptions,
  26. projSlug,
  27. location,
  28. router,
  29. isLoading,
  30. }: Props) {
  31. return (
  32. <Fragment>
  33. <BuiltInRepositories
  34. api={api}
  35. organization={organization}
  36. builtinSymbolSources={builtinSymbolSources}
  37. builtinSymbolSourceOptions={builtinSymbolSourceOptions}
  38. projSlug={projSlug}
  39. isLoading={isLoading}
  40. />
  41. <CustomRepositories
  42. api={api}
  43. location={location}
  44. router={router}
  45. organization={organization}
  46. customRepositories={customRepositories}
  47. projSlug={projSlug}
  48. isLoading={isLoading}
  49. />
  50. </Fragment>
  51. );
  52. }
  53. export default Sources;