import * as React from "react"; import { FunctionComponent } from "react"; import { useTranslation } from "react-i18next"; // Shown during a live game while an earlier position is on the board. const ReviewBanner: FunctionComponent<{ moveNumber: number, isYourTurn: boolean, onBackToLive: () => void, }> = ({ moveNumber, isYourTurn, onBackToLive }) => { const { t } = useTranslation(); return (
{t("ViewingMove", { number: moveNumber })} {isYourTurn && {` ยท ${t("YourTurn")}`}}
); }; export default ReviewBanner;