/* eslint-disable jsx-a11y/media-has-caption */ import { useCallback, useRef } from 'react' import { Modal } from 'react-bootstrap' import { Trans } from 'react-i18next' import type { OnboardingVideoStep } from '../utils/onboarding-video-step' type OnboardingVideoTourModalBodyProps = { step: OnboardingVideoStep } export default function OnboardingVideoTourModalBody({ step, }: OnboardingVideoTourModalBodyProps) { const firstVideoRef = useRef(null) const secondVideoRef = useRef(null) const handleCanPlayFirstVideo = useCallback(() => { if (firstVideoRef.current) { firstVideoRef.current.playbackRate = 1.5 } }, [firstVideoRef]) const handleCanPlaySecondVideo = useCallback(() => { if (secondVideoRef.current) { secondVideoRef.current.playbackRate = 3.0 } }, [secondVideoRef]) return (

{step === 'first' ? ( ]} // eslint-disable-line react/jsx-key /> ) : ( ]} // eslint-disable-line react/jsx-key /> )}

{step === 'first' ? (
) }