2023-05-01 07:51:00 +09:00
|
|
|
import React from 'react';
|
|
|
|
import classNames from 'classnames';
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
id: string;
|
|
|
|
className?: string;
|
|
|
|
fixedWidth?: boolean;
|
|
|
|
children?: never;
|
|
|
|
[key: string]: any;
|
2023-05-10 02:02:12 +09:00
|
|
|
};
|
|
|
|
export const Icon: React.FC<Props> = ({
|
|
|
|
id,
|
|
|
|
className,
|
|
|
|
fixedWidth,
|
|
|
|
...other
|
|
|
|
}) => (
|
|
|
|
<i
|
|
|
|
className={classNames('fa', `fa-${id}`, className, { 'fa-fw': fixedWidth })}
|
|
|
|
{...other}
|
|
|
|
/>
|
|
|
|
);
|