import { Check, ChevronLeft, ChevronRight, Link } from "lucide-react"; import type { KeyboardEventHandler, MouseEventHandler } from "react"; import type { BookMetadata } from "../types"; import { styles } from "../styles"; import { PauseSolid, PlaySolid } from "./Icons"; type Props = { isPlaying: boolean; onTogglePlay: () => void; onBack10: () => void; onForward10: () => void; onProgressClick: MouseEventHandler; onProgressKeyDown: KeyboardEventHandler; progressPercent: number; currentIndex: number; wordsLength: number; linkCopied: boolean; onCopyLink: () => void; bookMetadata: BookMetadata | null; bookStatsText: string | null; }; export function BottomControls({ isPlaying, onTogglePlay, onBack10, onForward10, onProgressClick, onProgressKeyDown, progressPercent, currentIndex, wordsLength, linkCopied, onCopyLink, bookMetadata, bookStatsText, }: Props) { return (
{currentIndex + 1} / {wordsLength} ({Math.round(progressPercent)}%)
Space play word speedR{" "} reset
{bookMetadata && (bookMetadata.title || bookMetadata.cover) && ( )}
); }