import type { CirclePulsingDotsProps } from "$/types/LoadingTypes"; import { usePrefersReducedMotion } from "$/util/AccessibilityUtil"; import { useId } from "react"; export default function CirclePulsingDots({ size, width, height, className, rotationAnimationDuration = 6000, growingAnimationDuration = 600, color, stroke, fill, ariaLabel = "Loading" }: Readonly){ //https://github.com/n3r4zzurr0/svg-spinners/blob/main/svg-smil/12-dots-scale-rotate.svg const id = useId(); const reducedMotion = usePrefersReducedMotion(); const rotationAnimationDur = reducedMotion ? rotationAnimationDuration / 100 : rotationAnimationDuration / 1000; const growingAnimationDur = reducedMotion ? growingAnimationDuration / 100 : growingAnimationDuration / 1000; return ( ); }