react-code-dataset / wp-calypso /client /lib /domains /utils /is-recently-registered-and-does-not-point-to-wpcom.ts
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
import { isRecentlyRegistered } from 'calypso/lib/domains/utils/is-recently-registered';
import type { ResponseDomain } from 'calypso/lib/domains/types';
/**
* Checks if the domain was registered recently and does not point to WPCOM.
* @param domain
* @returns boolean
*/
export function isRecentlyRegisteredAndDoesNotPointToWpcom( domain: ResponseDomain ): boolean {
return isRecentlyRegistered( domain.registrationDate ) && ! domain.pointsToWpcom;
}