export const companyInput = {

  };

export const getAsOfDateVisible = (activeStepId,stepIds) => (/*activeStepId !== stepIds.SCORING_SELECTION &&*/
  activeStepId !== stepIds.COMPANY_DATA_INPUTS && activeStepId !== stepIds.SCORING_INPUTS);

export const checkIndustryCountry =(existingCompanyData,selectedCountry,selectedIndustry) =>
 existingCompanyData?.countryCode !== selectedCountry?.value
      || existingCompanyData?.industryCode?.toString() !== selectedIndustry?.value?.toString();

export const getAsOfDate = (selectedAsOfDate,companyInformationFromStore) => selectedAsOfDate
  ? selectedAsOfDate
  : companyInformationFromStore?.selectedValues?.asOfDate;

export const getPropCompType = (changedByUser,propCompanyType,companyType,companyData) =>
  (companyData?.isCompanyTypeProp ? companyType : null);

export const getPropCountry = (changedByUser,propCountry,companyData) =>
    companyData?.isCountryProp ? companyData?.countryCode : null;

export const getPropIndustry = (changedByUser,propIndustry,companyData) =>
companyData?.isIndustryProp ? parseInt(companyData?.industryCode) : null;

export const getRgValidate = (isNext,activeStepId,stepIds,selectedValues) =>
    isNext && activeStepId === stepIds.COMPANY_DATA_INPUTS && selectedValues?.financialType === '0';
