text: import { ICONS } from '../constants';
  
  const getIcon = (name) => {
    let icon;
  
    switch (name) {
      case 'twitter':
        icon = ICONS.TWITTER;
        break;
      case 'github':
        icon = ICONS.GITHUB;
        break;
      case 'vkontakte':
        icon = ICONS.VKONTAKTE;
        break;
      case 'linkedin':
        icon = ICONS.LINKEDIN;
        break;
      case 'email':
        icon = ICONS.EMAIL;
        break;
      case 'rss':
        icon = ICONS.RSS;
        break;
      default:
        icon = {};
        break;
    }
  
    return icon;
  };
  
  export default getIcon;
  