You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
415 B
23 lines
415 B
import React from 'react';
|
|
|
|
import classNames from 'classnames';
|
|
|
|
interface Props extends React.HTMLAttributes<HTMLImageElement> {
|
|
id: string;
|
|
className?: string;
|
|
fixedWidth?: boolean;
|
|
children?: never;
|
|
}
|
|
|
|
export const Icon: React.FC<Props> = ({
|
|
id,
|
|
className,
|
|
fixedWidth,
|
|
...other
|
|
}) => (
|
|
<i
|
|
className={classNames('fa', `fa-${id}`, className, { 'fa-fw': fixedWidth })}
|
|
{...other}
|
|
/>
|
|
);
|