mirror of
https://github.com/Steffo99/festa.git
synced 2025-01-12 16:59:42 +00:00
16 lines
452 B
TypeScript
16 lines
452 B
TypeScript
|
import { FontAwesomeIcon, FontAwesomeIconProps } from "@fortawesome/react-fontawesome";
|
||
|
import { default as classNames } from "classnames";
|
||
|
import { memo } from "react";
|
||
|
|
||
|
/**
|
||
|
* Component which adds proper styling to {@link FontAwesomeIcon}.
|
||
|
*/
|
||
|
export const FestaIcon = memo((props: FontAwesomeIconProps) => {
|
||
|
return (
|
||
|
<FontAwesomeIcon
|
||
|
{...props}
|
||
|
className={classNames("icon", props.className)}
|
||
|
/>
|
||
|
)
|
||
|
})
|