function getUrlInfo(url) {
	    const data = {};
	
	    if (!url || typeof url !== 'string') {
	        data.is_email = false;
	        data.is_internal = false;
	        return data;
	    }
	
	    if (url.startsWith('mailto:')) {
	        data.is_email = true;
	        return data;
	    }
	
	    try {
	        const mainDomainFromGivenUrl = extractMainDomainFromUrl(url);
	        data.is_internal = mainDomainFromGivenUrl === mainUrl;
	    } catch (error) {
	        console.error("Error processing URL:", url, error);
	        data.is_internal = false;
	    }
	
	    return data;
	}
Getting info about the url. It includes checking isEmail of isInternal
@param {*} url