'use strict';

class Footer extends React.Component 
{
  constructor(props) 
  {
    super(props);
  }

  render() 
  {
    return (
      <footer>
        <Line />
        <Copyright year={this.props.year} author={this.props.author} contact={this.props.contact} />
      </footer>
    );    
  }
}

function Copyright(props)
{
  return <div className="copyright">© {props.year} <a href={'mailto:'+ props.contact}>{props.author}</a></div>
}