import React from "react";
import { CityName } from "../../Locations/data/CityNames";
import Typography from "@mui/material/Typography";
import Tooltip from "@mui/material/Tooltip";
import { Theme } from "@mui/material/styles";
import makeStyles from "@mui/styles/makeStyles";
import createStyles from "@mui/styles/createStyles";
interface ICityProps {
currentCity: CityName;
city: CityName;
onTravel: (city: CityName) => void;
}
const useStyles = makeStyles((theme: Theme) =>
createStyles({
travel: {
color: theme.colors.white,
lineHeight: "1em",
whiteSpace: "pre",
cursor: "pointer"
},
})
);
function City(props: ICityProps): React.ReactElement {
const classes = useStyles();
if (props.city !== props.currentCity) {
return (
{props.city}}>
props.onTravel(props.city)}
className={classes.travel}
>
{props.city[0]}
);
}
return {props.city[0]};
}
interface IProps {
currentCity: CityName;
onTravel: (city: CityName) => void;
}
export function WorldMap(props: IProps): React.ReactElement {
// prettier-ignore
return (
<>
,_ . ._. _. .
, _-\','|~\~ ~/ ;-'_ _-' ,;_;_, ~~-
/~~-\_/-'~'--' \~~| ', ,' / / ~|-_\_/~/~ ~~--~~~~'--_
/ ,/'-/~ '\ ,' _ , ','|~ ._/-, /~
~/-'~\_, '-,| '|. ' ~ ,\ /'~ / /_ /~
.-~ '| '',\~|\ _\~ ,_ , /,
'\ /'~ |_/~\\,-,~ \ " ,_,/ |
| / ._-~'\_ _~| \ )
\ __-\ '/ ~ |\ \_ / ~
., '\ |, ~-_ - | \\_' ~| /\ \~ ,
~-_' _; '\ '-, \,' /\/ |
'\_,~'\_ \_ _, /' ' |, /|'
/ \_ ~ | / \ ~'; -,_.
| ~\ | | , '-_, ,; ~ ~\
\, / \ / /| ,-, , -,
| ,/ | |' |/ ,- ~ \ '.
,| ,/ \ ,/ \ |
/ | ~ -~~-, / _
| ,-' ~ /
/ ,' ~
',| ~
~'
>
);
}