import React, { Component } from 'react';
import widget from '../images/widget.png';
import widgetForms from '../images/forms/widget.png';
import { values } from '../values.config';

class ViewWidget extends Component {
  render() {
    let src = widget;
    if (values.featureKey === 'maintenanceForms') {
      src = widgetForms;
    }

    return <img style={styles.image} src={src} alt="widget" />;
  }
}

const styles = {
  image: {
    width: 80,
  },
};

export default ViewWidget;
