1 import type { CSSProperties } from 'react';
3 import { CircleLoader } from '@proton/atoms';
4 import { Icon, Tooltip } from '@proton/components';
5 import clsx from '@proton/utils/clsx';
8 display: 'loader' | 'half-circle' | 'circle' | 'bordered-circle';
9 color: string | undefined;
15 const BusyParticipantRowDot = ({ color, display, tooltipText, onClick, classname }: Props) => {
16 if (display === 'loader') {
18 <Tooltip title={tooltipText}>
19 <div className="flex">
23 style={{ color: color || 'black' }}
31 const colorStyle = ((): CSSProperties => {
32 if (display === 'half-circle') {
34 backgroundColor: 'transparent',
38 if (display === 'bordered-circle') {
40 border: `0.0625rem solid ${color}`,
45 backgroundColor: color,
50 <Tooltip title={tooltipText}>
52 className={clsx('m-auto relative flex rounded-full', classname)}
60 {display === 'half-circle' && (
61 <Icon name={'circle-half-filled'} size={2.5} className={clsx('opacity-70 rotateZ-45')} />
68 export default BusyParticipantRowDot;