| 14 | } |
| 15 | |
| 16 | export function Dot({ className, size = 8, animated }: DotProps) { |
| 17 | const style = { |
| 18 | width: size, |
| 19 | height: size, |
| 20 | }; |
| 21 | return ( |
| 22 | <div |
| 23 | className={cn( |
| 24 | 'relative', |
| 25 | filterCn(['bg-', 'animate-', 'group-hover/row'], className), |
| 26 | )} |
| 27 | style={style} |
| 28 | > |
| 29 | <div |
| 30 | className={cn( |
| 31 | 'absolute !m-0 rounded-full', |
| 32 | animated !== false && 'animate-ping', |
| 33 | className, |
| 34 | )} |
| 35 | style={style} |
| 36 | /> |
| 37 | <div |
| 38 | className={cn( |
| 39 | 'absolute !m-0 rounded-full', |
| 40 | filterCn(['animate-', 'group-hover/row'], className), |
| 41 | )} |
| 42 | style={style} |
| 43 | /> |
| 44 | </div> |
| 45 | ); |
| 46 | } |