import { type PriceCoingecko, useLocale, usePrices } from '@/features/prices' import { formatFiat } from '@/lib' import styles from './Price.module.css' import { PriceChange } from './PriceChange' export function Price({ price }: { price: PriceCoingecko }) { const { isValidating, isLoading } = usePrices() const locale = useLocale() const feedbackClasses = isLoading ? 'isLoading' : isValidating ? 'isValidating' : '' return (

{formatFiat(price?.usd, 'USD', locale)} {price?.usd_24h_change ? ( ) : null}

) }