import type { LoadingDotsProps } from "$/types/LoadingTypes"; import { usePrefersReducedMotion } from "$/util/AccessibilityUtil"; import { useId } from "react"; export default function CyclingDots({ size, width, height, className, animationDuration = 500, color, stroke, fill, ariaLabel = "Loading" }: Readonly){ //https://github.com/n3r4zzurr0/svg-spinners/blob/main/svg-smil/3-dots-move.svg const id = useId(); const reducedMotion = usePrefersReducedMotion(); const dur = reducedMotion ? animationDuration / 100 : animationDuration / 1000; return ( ); }