import {RouteComponentProps} from 'react-router';
import {Project} from 'sentry/types';
import useOrganization from 'sentry/utils/useOrganization';
import ProjectSourceMapsDetail from 'sentry/views/settings/projectSourceMaps/detail';
import ProjectSourceMapsList from 'sentry/views/settings/projectSourceMaps/list';
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 function ProjectSourceMapsContainer({params, location, ...props}: Props) {
const organization = useOrganization();
const sourceMapsDebugIds = organization.features.includes('source-maps-debug-ids');
if (!sourceMapsDebugIds) {
if (params.name) {
return (
);
}
return (
);
}
if (params.bundleId) {
return (
);
}
return ;
}