mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 01:35:17 +01:00
19 lines
441 B
JavaScript
19 lines
441 B
JavaScript
import React from 'react';
|
|
import classNames from 'classnames';
|
|
import styles from './Icon.module.css';
|
|
|
|
export default function Icon({ icon, className, size = 'M' }) {
|
|
return (
|
|
<div
|
|
className={classNames(styles.icon, className, {
|
|
[styles.xl]: size === 'XL',
|
|
[styles.large]: size === 'L',
|
|
[styles.medium]: size === 'M',
|
|
[styles.small]: size === 'S',
|
|
})}
|
|
>
|
|
{icon}
|
|
</div>
|
|
);
|
|
}
|