import React from 'react';
import styles from './index.less';

function Icon({ color: backgroundColor }) {
  return backgroundColor ? (
    <span
      style={{
        backgroundColor
      }}
      className={`${styles.icon} node-layer-icon`}
    />
  ) : null;
}

export default Icon;
