import { Icon } from './icons';

export default function LoadingSpinner({ size = 24, text = '加载中...' }) {
  return (
    <div className="loading-spinner">
      <Icon name="spinner" size={size} className="is-spinning" />
      {text && <span>{text}</span>}
    </div>
  );
}
