mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-27 22:01:35 +01:00
5f2071d055
Port c8181eb0a4
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
12 lines
363 B
TypeScript
12 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} />;
|