'use client';

import { useCurrency } from '@/lib/CurrencyContext';
import { formatPrice } from '@/lib/currency';

export default function Price({ cents, className }: { cents: number; className?: string }) {
  const { currency } = useCurrency();
  return <span className={className}>{formatPrice(cents, currency)}</span>;
}
