import { Text, TouchableOpacity, View } from 'react-native'; import { Button } from './Button'; import { styles } from '../style'; import type { TooltipProps } from '../../types'; export const Tooltip = ({ labels, goToNext, goToPrev, stop, currentStep, isFirstStep, isLastStep, }: TooltipProps) => { const handleStop = () => { stop!(); }; const handleNext = () => { goToNext!(); }; const handlePrev = () => { goToPrev!(); }; return ( {typeof currentStep?.text === 'string' ? ( {currentStep.text} ) : ( currentStep?.text )} {!isLastStep ? ( ) : null} {!isFirstStep ? ( ) : null} {!isLastStep ? ( ) : ( )} ); };