"use client"; import { motion, useReducedMotion } from "motion/react"; type MorphSpinnerProps = { className?: string; color?: string; /** Second colour the shape blends into. */ accent?: string; /** Loader width in pixels. */ size?: number; /** 1 is the default pace; 2 is twice as fast. */ speed?: number; /** Read out by screen readers. */ label?: string; }; /* MorphSpinner: one shape turns while it melts from square to circle to leaf and back, shifting colour. */ export function MorphSpinner({ className = "", color = "#a78bfa", accent = "#f472b6", size = 56, speed = 1, label = "Loading", }: MorphSpinnerProps) { const reduce = useReducedMotion(); return (