import React from 'react';

export default function LoadingSpinner({ fullscreen = false }) {
  if (fullscreen) {
    return (
      <div className="fixed inset-0 z-50 flex items-center justify-center bg-bg-overlay-dark">
        <div className="flex flex-col items-center gap-4">
          <div className="h-8 w-8 animate-spin rounded-full border-4 border-text-tertiary border-t-accent-warm"></div>
          <p className="text-text-primary">Chargement...</p>
        </div>
      </div>
    );
  }

  return (
    <div className="h-8 w-8 animate-spin rounded-full border-4 border-text-tertiary border-t-accent-warm"></div>
  );
}
