// Uygulamadaki TEK tutar gösterim yolu — lira büyük, kuruş küçük/paslı
export function Amount({ minor, size = 'md' }: { minor: number; size?: 'sm' | 'md' | 'lg' }) {
  const abs = Math.abs(minor);
  const sign = minor < 0 ? '−' : '';
  const lira = Math.floor(abs / 100).toLocaleString('tr-TR');
  const kurus = String(abs % 100).padStart(2, '0');
  return (
    <span className={`amount amount--${size}`}>
      <span className="amount__lira">
        {sign}
        {lira}
      </span>
      <span className="amount__kurus">,{kurus} ₺</span>
    </span>
  );
}
