index.tsx 1.5 KB

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