mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
12 lines
370 B
TypeScript
12 lines
370 B
TypeScript
import type {Organization} from 'sentry/types';
|
|
|
|
/**
|
|
* Used to determine if viewer can see project creation button
|
|
*/
|
|
export function useProjectCreationAccess({organization}: {organization: Organization}) {
|
|
const canCreateProject =
|
|
organization.access.includes('project:admin') ||
|
|
organization.features.includes('team-roles');
|
|
return {canCreateProject};
|
|
}
|