type SpinnerProps = {
  size?: number;
  className?: string;
};

const Spinner = ({ size = 22, className = '' }: SpinnerProps) => (
  <span
    className={`inline-block rounded-full border-[2.5px] border-current border-t-transparent animate-spin ${className}`}
    style={{ width: size, height: size, color: 'var(--tg-accent)' }}
  />
);

export default Spinner;
