mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
26 lines
468 B
JavaScript
26 lines
468 B
JavaScript
//@flow
|
|
import React from "react";
|
|
import classNames from "classnames";
|
|
|
|
type Props = {
|
|
title?: string,
|
|
name: string
|
|
}
|
|
|
|
export default class Icon extends React.Component<Props> {
|
|
|
|
render() {
|
|
const { title, name } = this.props;
|
|
if(title) {
|
|
return (
|
|
<i title={title} className={classNames("is-icon", "fas", "fa-fw", "fa-" + name)}/>
|
|
);
|
|
}
|
|
return (
|
|
<i className={classNames("is-icon", "fas", "fa-" + name)}/>
|
|
);
|
|
}
|
|
|
|
}
|
|
|