import React from 'react';
import Icon from "@/jsx/Components/Icon.jsx";

export default class NavLink extends React.Component {

  constructor(props) {
    super(props);
  }

  render() {
    const {icon} = this.props;
    return (
      <a {...this.props} className="ra-nav-link">
        {
          icon && <Icon>{icon}</Icon>
        }
        <span className="ra-nav-link-text">
          {this.props.children}
        </span>
      </a>
    );
  }

}
