12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- import {Fragment} from 'react';
- import type {InjectedRouter} from 'react-router';
- import type {Location} from 'history';
- import type {Client} from 'sentry/api';
- import type {Organization, Project} from 'sentry/types';
- import type {BuiltinSymbolSource, CustomRepo} from 'sentry/types/debugFiles';
- import BuiltInRepositories from './builtInRepositories';
- import CustomRepositories from './customRepositories';
- type Props = {
- api: Client;
- builtinSymbolSourceOptions: BuiltinSymbolSource[];
- builtinSymbolSources: string[];
- customRepositories: CustomRepo[];
- isLoading: boolean;
- location: Location;
- organization: Organization;
- project: Project;
- router: InjectedRouter;
- };
- function Sources({
- api,
- organization,
- customRepositories,
- builtinSymbolSources,
- builtinSymbolSourceOptions,
- project,
- location,
- router,
- isLoading,
- }: Props) {
- return (
- <Fragment>
- <BuiltInRepositories
- api={api}
- organization={organization}
- builtinSymbolSources={builtinSymbolSources}
- builtinSymbolSourceOptions={builtinSymbolSourceOptions}
- project={project}
- isLoading={isLoading}
- />
- <CustomRepositories
- api={api}
- location={location}
- router={router}
- organization={organization}
- customRepositories={customRepositories}
- project={project}
- isLoading={isLoading}
- />
- </Fragment>
- );
- }
- export default Sources;
|