1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-23 07:04:22 +00:00
festa/components/generic/renderers/fontawesome.tsx

18 lines
542 B
TypeScript
Raw 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"