import type {BaseButtonProps} from 'sentry/components/button'; import {Button} from 'sentry/components/button'; import {useReplayContext} from 'sentry/components/replays/replayContext'; import {IconPause, IconPlay, IconRefresh} from 'sentry/icons'; import {t} from 'sentry/locale'; function ReplayPlayPauseButton(props: BaseButtonProps) { const {isFinished, isPlaying, restart, togglePlayPause} = useReplayContext(); return isFinished ? (