]>
cat aescling's git repositories - mastodon.git/blob - app/javascript/flavours/glitch/components/icon.js
2 import classNames
from 'classnames';
3 import PropTypes
from 'prop-types';
4 import React
from 'react';
6 // This just renders a FontAwesome icon.
7 export default function Icon ({
12 const computedClass
= classNames('icon', 'fa', { 'fa-fw': fullwidth
}, `fa-${icon}`, className
);
16 className
={computedClass
}
23 className: PropTypes
.string
,
24 fullwidth: PropTypes
.bool
,
25 icon: PropTypes
.string
,
This page took 0.068944 seconds and 4 git commands to generate.