15 lines
296 B
TypeScript
15 lines
296 B
TypeScript
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>
|
|
);
|
|
}
|