projectSettingsNavigation.tsx 862 B

12345678910111213141516171819202122232425262728
  1. import type {Organization} from 'sentry/types/organization';
  2. import type {Project} from 'sentry/types/project';
  3. import withProject from 'sentry/utils/withProject';
  4. import SettingsNavigation from 'sentry/views/settings/components/settingsNavigation';
  5. import getConfiguration from 'sentry/views/settings/project/navigationConfiguration';
  6. type Props = {
  7. organization: Organization;
  8. project?: Project;
  9. };
  10. function ProjectSettingsNavigation({organization, project}: Props) {
  11. return (
  12. <SettingsNavigation
  13. navigationObjects={getConfiguration({
  14. project,
  15. organization,
  16. debugFilesNeedsReview: false,
  17. })}
  18. access={new Set(organization.access)}
  19. features={new Set(organization.features)}
  20. organization={organization}
  21. project={project}
  22. />
  23. );
  24. }
  25. export default withProject(ProjectSettingsNavigation);