text: import * as SvgIconsComponent from '../components/icons';
  
  /**
   * Icons Component map.
   * 
   * @param {string} name Icon name.
   * @returns {*}
   */
  export const getIconComponentByName = ( name ) => {
      const ComponentsMap = {
          facebook: SvgIconsComponent.Facebook,
          twitter: SvgIconsComponent.Twitter,
          instagram: SvgIconsComponent.Instagram,
          youtube: SvgIconsComponent.Youtube
      }
  
      if ( name in ComponentsMap ) {
          const IconComponent = ComponentsMap[name];
          return <IconComponent />
      } else {
          return null;
      }
  }