import Access from 'sentry/components/acl/access'; import Alert from 'sentry/components/alert'; import {t} from 'sentry/locale'; type Props = React.ComponentPropsWithoutRef & Pick, 'access'>; const PermissionAlert = ({access = ['project:write'], ...props}: Props) => ( {({hasAccess}) => !hasAccess && ( {t( 'These settings can only be edited by users with the organization owner, manager, or admin role.' )} ) } ); export default PermissionAlert;