import React from 'react'; import type { TextProps as RNTextProps } from 'react-native'; import type { AnimatedProps } from 'react-native-reanimated'; import type { TFormatterFn, TPriceType } from './types'; import { useCandlestickChartPrice } from './usePrice'; import { AnimatedText } from '../../components/AnimatedText'; export type CandlestickChartPriceTextProps = { format?: TFormatterFn; precision?: number; variant?: 'formatted' | 'value'; type?: TPriceType; style?: AnimatedProps['style']; }; export function CandlestickChartPriceText({ format, precision = 2, variant = 'formatted', type = 'crosshair', style, }: CandlestickChartPriceTextProps) { const price = useCandlestickChartPrice({ format, precision, type }); return ; }