export function formatEUR(amount: number): string {
  return new Intl.NumberFormat("de-DE", { style: "currency", currency: "EUR" }).format(amount);
}

export function formatGrundpreis(amount: number, netWeightGrams: number): string {
  const perKg = (amount / netWeightGrams) * 1000;
  return `${formatEUR(perKg)}/kg`;
}
