mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 09:45:04 +01:00
16 lines
379 B
JavaScript
16 lines
379 B
JavaScript
|
import React from 'react';
|
||
|
import classNames from 'classnames';
|
||
|
import styles from './Dot.module.css';
|
||
|
|
||
|
export default function Dot({ color, size, className }) {
|
||
|
return (
|
||
|
<div
|
||
|
style={{ background: color }}
|
||
|
className={classNames(styles.dot, className, {
|
||
|
[styles.small]: size === 'small',
|
||
|
[styles.large]: size === 'large',
|
||
|
})}
|
||
|
/>
|
||
|
);
|
||
|
}
|