import Telescope from 'meteor/nova:lib'; import React from 'react'; const Icon = ({ name, iconClass }) => { const icons = Telescope.utils.icons; const iconCode = !!icons[name] ? icons[name] : name; iconClass = (typeof iconClass === 'string') ? ' '+iconClass : ''; const c = 'icon fa fa-fw fa-' + iconCode + ' icon-' + name + iconClass; return ; } Icon.displayName = "Icon"; Telescope.registerComponent('Icon', Icon); export default Icon;