import styles from './LoadingSpinner.module.scss';

const LoadingSpinner = ({ message = 'Loading…' }) => (
  <div className={styles['spinner']} role="status" aria-label={message}>
    <span className={styles['spinner__ring']} />
    <span className={styles['spinner__label']}>{message}</span>
  </div>
);

export default LoadingSpinner;
