mirror of
https://github.com/funamitech/mastodon
synced 2024-12-15 07:09:03 +09:00
15 lines
385 B
TypeScript
15 lines
385 B
TypeScript
|
import React from 'react';
|
||
|
import classNames from 'classnames';
|
||
|
|
||
|
type Props = {
|
||
|
id: string;
|
||
|
className?: string;
|
||
|
fixedWidth?: boolean;
|
||
|
children?: never;
|
||
|
[key: string]: any;
|
||
|
}
|
||
|
export const Icon: React.FC<Props> = ({ id, className, fixedWidth, ...other }) =>
|
||
|
<i className={classNames('fa', `fa-${id}`, className, { 'fa-fw': fixedWidth })} {...other} />;
|
||
|
|
||
|
export default Icon;
|