// External imports
import * as React from "react"
import FontawesomeIcon from "@fortawesome/react-fontawesome"

// Internal imports
import * as ce from "../../helpers/componentEnhancer"

export interface ParentProps {}

class Icon extends React.Component<ParentProps & ce.EnhancedPropsPrivate> {
  render() {
    return (
      <span className="fawkes-icon">
        <FontawesomeIcon {...this.props} />
      </span>
    )
  }
}

export default ((): React.ComponentType<
  ParentProps & ce.EnhancedPropsPublic & any
> => ce.enhance(Icon))()
