import React from 'react';

export default function Spinner({ size = 'md' }) {
  const sizeMap = { sm: 'h-4 w-4', md: 'h-6 w-6', lg: 'h-8 w-8' };

  return (
    <div className={`animate-spin rounded-full border-2 border-sky-500 border-t-transparent ${sizeMap[size]}`} />
  );
}