1 import tinycolor from 'tinycolor2';
3 import { Icon } from '@proton/components';
4 import clsx from '@proton/utils/clsx';
10 const CalendarIcon = ({ color, className }: Props) => {
11 const colorModel = tinycolor(color);
12 const iconColor = colorModel?.isValid() ? colorModel?.toHexString() : '';
16 return <Icon className={clsx(['shrink-0', className])} name="calendar-grid" color={iconColor} />;
19 export default CalendarIcon;