mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-23 15:14:23 +00:00
17 lines
542 B
TypeScript
17 lines
542 B
TypeScript
import { FontAwesomeIcon, FontAwesomeIconProps } from "@fortawesome/react-fontawesome";
|
|
import { default as classNames } from "classnames";
|
|
import { memo } from "react";
|
|
import style from "./fontawesome.module.css"
|
|
|
|
/**
|
|
* Component which adds proper styling to {@link FontAwesomeIcon}.
|
|
*/
|
|
export const FestaIcon = memo((props: FontAwesomeIconProps) => {
|
|
return (
|
|
<FontAwesomeIcon
|
|
{...props}
|
|
className={classNames(style.festaIcon, props.className)}
|
|
/>
|
|
)
|
|
})
|
|
FestaIcon.displayName = "FestaIcon"
|