import './Spinner.css';

interface SpinnerProps {
  label?: string;
}

/** Indicateur de chargement accessible. */
export default function Spinner({ label = 'Chargement…' }: SpinnerProps) {
  return (
    <div className="spinner" role="status" aria-live="polite">
      <span className="spinner__circle" aria-hidden />
      <span className="spinner__label">{label}</span>
    </div>
  );
}
