File size: 330 Bytes
1e92f2d
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import type { ResponseDomain } from 'calypso/lib/domains/types';

/**
 * Determines if email can be added to the provided domain.
 * Additional checks are not performed for existing email subscriptions
 */
export function canCurrentUserAddEmail( domain: ResponseDomain | undefined ) {
	return !! domain?.currentUserCanAddEmail;
}