import { formatDateAxis } from '@components/shared/DetailedAreaOrBarChart' import dayjs from 'dayjs' import { BirdeyePriceResponse } from 'hooks/useBirdeyeMarketPrices' import useThemeWrapper from 'hooks/useThemeWrapper' import { useMemo } from 'react' import { Area, AreaChart, ResponsiveContainer, XAxis, YAxis } from 'recharts' import { COLORS } from 'styles/colors' import { formatCurrencyValue } from 'utils/numbers' const PriceChart = ({ prices, daysToShow, }: { prices: BirdeyePriceResponse[] daysToShow: number }) => { const { theme } = useThemeWrapper() const change = useMemo(() => { return prices[prices.length - 1].value - prices[0].value }, [prices]) return (