mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-03 13:33:32 -05:00
5f2071d055
Port c8181eb0a41c4f5c1655d4e400cab071aee4182a to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
13 lines
363 B
TypeScript
13 lines
363 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} />;
|