mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
29 lines
766 B
TypeScript
29 lines
766 B
TypeScript
import type {RouteComponentProps} from 'react-router';
|
|
|
|
import type {Project} from 'sentry/types';
|
|
|
|
import {ProjectSourceMaps} from './projectSourceMaps';
|
|
import {ProjectSourceMapsArtifacts} from './projectSourceMapsArtifacts';
|
|
|
|
type Props = RouteComponentProps<
|
|
{orgId: string; projectId: string; bundleId?: string; name?: string},
|
|
{}
|
|
> & {
|
|
children: React.ReactNode;
|
|
project: Project;
|
|
};
|
|
|
|
export default function ProjectSourceMapsContainer({params, location, ...props}: Props) {
|
|
if (params.bundleId) {
|
|
return (
|
|
<ProjectSourceMapsArtifacts
|
|
{...props}
|
|
location={location}
|
|
params={{...params, bundleId: params.bundleId}}
|
|
/>
|
|
);
|
|
}
|
|
|
|
return <ProjectSourceMaps {...props} location={location} params={params} />;
|
|
}
|