Chore: move shared components to components/
This commit is contained in:
19
src/components/FAIcon/FAIcon.tsx
Normal file
19
src/components/FAIcon/FAIcon.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import React, { FC } from 'react';
|
||||
import { cx } from 'emotion';
|
||||
|
||||
interface Props {
|
||||
icon: string;
|
||||
customClass?: string;
|
||||
}
|
||||
|
||||
export const FAIcon: FC<Props> = ({ icon, customClass }) => {
|
||||
const wrapperClass = cx('fa-icon-container', customClass);
|
||||
|
||||
return (
|
||||
<span className={wrapperClass}>
|
||||
<i className={`fa fa-${icon}`}></i>
|
||||
</span>
|
||||
);
|
||||
};
|
||||
|
||||
export default FAIcon;
|
||||
Reference in New Issue
Block a user