1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-10-16 15:07:27 +00:00
festa/components/generic/renderers/fontawesome.tsx

18 lines
542 B
TypeScript
Raw Permalink Normal View History

2022-06-11 03:08:49 +00:00
import { FontAwesomeIcon, FontAwesomeIconProps } from "@fortawesome/react-fontawesome";
import { default as classNames } from "classnames";
import { memo } from "react";
2022-07-16 16:10:31 +00:00
import style from "./fontawesome.module.css"
2022-06-11 03:08:49 +00:00
/**
* Component which adds proper styling to {@link FontAwesomeIcon}.
*/
export const FestaIcon = memo((props: FontAwesomeIconProps) => {
return (
<FontAwesomeIcon
{...props}
2022-07-16 16:10:31 +00:00
className={classNames(style.festaIcon, props.className)}
2022-06-11 03:08:49 +00:00
/>
)
})
2022-07-16 14:12:29 +00:00
FestaIcon.displayName = "FestaIcon"