X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=cmd%2Fweb%2Fjs%2Ficon.jsx;fp=cmd%2Fweb%2Fjs%2Ficon.jsx;h=53453bc26a7c921d17d60da3ba6af976ecc32b55;hb=335b0c9bdc3e129f14bc40dd5f125b3526a83a40;hp=0000000000000000000000000000000000000000;hpb=a6820180928670b0642fa6a28ac221ce158230bb;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FFront.git
diff --git a/cmd/web/js/icon.jsx b/cmd/web/js/icon.jsx
new file mode 100644
index 0000000..53453bc
--- /dev/null
+++ b/cmd/web/js/icon.jsx
@@ -0,0 +1,19 @@
+import React from 'react';
+import classnames from 'classnames';
+
+class Icon extends React.Component {
+ render = () => {
+ var className = null;
+
+ if (this.props.icon.startsWith('icon-')) {
+ className = classnames(this.props.icon, this.props.className);
+ return ;
+ }
+
+ className = classnames('bt', 'bt-' + this.props.icon, this.props.className);
+ return ;
+
+ }
+}
+
+export default Icon;