File size: 337 Bytes
1e92f2d
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import { getEmailForwardsCount } from 'calypso/lib/domains/email-forwarding/get-email-forwards-count';

/**
 * @param domain A domain object returned from the domains REST API
 * @returns {boolean} Whether the doamin has any email forwards.
 */
export function hasEmailForwards( domain ) {
	return getEmailForwardsCount( domain ) > 0;
}