import React from "react"; import { CONSTANTS } from "../../Constants"; import { Money } from "../../ui/React/Money"; import { Modal } from "../../ui/React/Modal"; import { use } from "../../ui/Context"; import Typography from "@mui/material/Typography"; import Button from "@mui/material/Button"; interface IProps { city: string; travel: () => void; open: boolean; onClose: () => void; } export function TravelConfirmationModal(props: IProps): React.ReactElement { const player = use.Player(); const cost = CONSTANTS.TravelCost; function travel(): void { props.travel(); } return ( Would you like to travel to {props.city}? The trip will cost .

); }