mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-24 04:38:07 +01:00
a49707dacb
Port 81f75b1e0e
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
14 lines
385 B
TypeScript
14 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;
|