export function getSettingsSuffix(user) {
	if (!user) {
		return '';
	}

	const { customFields } = user;
	if (!customFields) {
		return '';
	}

	const { ngIntegrationCustomField } = customFields;
	if (!ngIntegrationCustomField) {
		return '';
	}

	const suffix = ngIntegrationCustomField.replace(/[^A-z0-9_]/g, '');
	if (suffix === 'Default') {
		return '';
	}

	return `-${ suffix }`;
}
