import React from 'react'; import { Animated } from 'react-native'; import Knob from '../Knob'; import type { Color } from '../../types'; import { luckyWheelStyles as styles } from './styles'; type WheelKnobProps = { knobInterpolated: Animated.AnimatedInterpolation; knobSize: number; knobColor: Color; customKnob?: (params: { size: number; color: Color }) => React.ReactNode; }; export function WheelKnob({ knobInterpolated, knobSize, knobColor, customKnob, }: WheelKnobProps) { return ( {customKnob ? ( customKnob({ size: knobSize, color: knobColor }) ) : ( )} ); }