export function currencyLabel(currency: string, locale: string): string {
  const code = currency.toUpperCase();
  if (code === 'TND' && locale === 'ar') return 'د.ت';
  return currency;
}

export function formatPrice(price: number, currency: string, locale: string): string {
  return `${price} ${currencyLabel(currency, locale)}`;
}