21 lines
531 B
JavaScript
Raw Normal View History

2022-06-27 23:38:19 +02:00
import './ButtonIcon.scss';
import React, { Component } from '../../../node_modules/react';
export default class ButtonIcon extends Component {
2022-06-27 23:38:19 +02:00
// constructor(props) {
// super(props);
// this.state = {};
// }
render() {
return <a rel="noopener noreferrer" href={this.props.lien} target="_blank">
<button className="button" aria-label="Bouton {this.props.aria-label}">
2022-06-27 23:38:19 +02:00
<span class="icon">
2022-07-17 11:20:35 +02:00
<i className={"ion-" + this.props.icon}></i>
2022-06-27 23:38:19 +02:00
</span>
</button>
</a>;
}
}