problems: refactor
This commit is contained in:
14
src/panel-triggers/components/FAIcon.tsx
Normal file
14
src/panel-triggers/components/FAIcon.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import React from 'react';
|
||||
|
||||
interface FAIconProps {
|
||||
icon: string;
|
||||
customClass?: string;
|
||||
}
|
||||
|
||||
export default function FAIcon(props: FAIconProps) {
|
||||
return (
|
||||
<span className={`fa-icon-container ${props.customClass || ''}`}>
|
||||
<i className={`fa fa-${props.icon}`}></i>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user