index.tsx 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import {Fragment} from 'react';
  2. import type {Location} from 'history';
  3. import type {Client} from 'sentry/api';
  4. import type {BuiltinSymbolSource, CustomRepo} from 'sentry/types/debugFiles';
  5. import type {InjectedRouter} from 'sentry/types/legacyReactRouter';
  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. location: Location;
  16. organization: Organization;
  17. project: Project;
  18. router: InjectedRouter;
  19. };
  20. function Sources({
  21. api,
  22. organization,
  23. customRepositories,
  24. builtinSymbolSources,
  25. builtinSymbolSourceOptions,
  26. project,
  27. location,
  28. router,
  29. }: Props) {
  30. return (
  31. <Fragment>
  32. <BuiltInRepositories
  33. api={api}
  34. organization={organization}
  35. builtinSymbolSources={builtinSymbolSources}
  36. builtinSymbolSourceOptions={builtinSymbolSourceOptions}
  37. project={project}
  38. />
  39. <CustomRepositories
  40. api={api}
  41. location={location}
  42. router={router}
  43. organization={organization}
  44. customRepositories={customRepositories}
  45. project={project}
  46. />
  47. </Fragment>
  48. );
  49. }
  50. export default Sources;