'use client' import { useLocale } from '@/features/prices/hooks/use-locale' import { TriangleDownIcon, TriangleUpIcon } from '@radix-ui/react-icons' import styles from './PriceChange.module.css' export function PriceChange({ priceChange }: { priceChange: number }) { const locale = useLocale() const styleClasses = priceChange > 0 ? styles.positive : styles.negative return ( {priceChange > 0 ? : } {Math.abs(priceChange).toFixed(1)}% ) }