This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2023-04-30 15:51:00 -07:00
|
|
|
import React from 'react';
|
|
|
|
import classNames from 'classnames';
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
id: string;
|
|
|
|
className?: string;
|
|
|
|
fixedWidth?: boolean;
|
|
|
|
children?: never;
|
|
|
|
[key: string]: any;
|
2023-05-09 14:41:18 -07:00
|
|
|
};
|
|
|
|
export const Icon: React.FC<Props> = ({
|
|
|
|
id,
|
|
|
|
className,
|
|
|
|
fixedWidth,
|
|
|
|
...other
|
|
|
|
}) => (
|
|
|
|
<i
|
|
|
|
className={classNames('fa', `fa-${id}`, className, { 'fa-fw': fixedWidth })}
|
|
|
|
{...other}
|
|
|
|
/>
|
|
|
|
);
|