) : entitlement ? (
@@ -356,10 +356,15 @@ export function TeamPageView(props: TeamPageViewProps): React.JSX.Element {
'auto.components.billing.team.leaveBody2',
'You lose access to the team’s cloud workspaces and secrets. An owner or admin can invite you back.'
)
- : t(
- 'auto.components.billing.team.leaveLastOwner',
- 'You’re the only owner. Make someone else an owner first.'
- )}
+ : props.dangerZone
+ ? t(
+ 'auto.components.billing.team.leaveLastOwnerOrDelete',
+ 'You’re the only owner. Make someone else an owner first, or delete the team.'
+ )
+ : t(
+ 'auto.components.billing.team.leaveLastOwner',
+ 'You’re the only owner. Make someone else an owner first.'
+ )}