mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 01:35:17 +01:00
18 lines
405 B
JavaScript
18 lines
405 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.large]: size === 'L',
|
|
[styles.medium]: size === 'M',
|
|
[styles.small]: size === 'S',
|
|
})}
|
|
>
|
|
{icon}
|
|
</div>
|
|
);
|
|
}
|