var Component = require('elements-core').Component;

class Icon extends Component {
  render(state, content) {
    if (!state.type) {
      state.type  = 'ios-star';
    }

    return `<i class="icon ion-${state.type}"></i>${content}`;
  }
  static expose() {
    return {
      type: 'icon'
    };
  }
}

module.exports = Icon;