import MapsLayout from '~/layouts/MapsLayout' import { Head, Link } from '@inertiajs/react' import MapComponent from '~/components/maps/MapComponent' import StyledButton from '~/components/StyledButton' import { IconArrowLeft } from '@tabler/icons-react' import { FileEntry } from '../../types/files' import Alert from '~/components/Alert' export default function Maps(props: { maps: { baseAssetsExist: boolean; regionFiles: FileEntry[] } }) { const alertMessage = !props.maps.baseAssetsExist ? 'The base map assets have not been installed. Please download them first to enable map functionality.' : props.maps.regionFiles.length === 0 ? 'No map regions have been downloaded yet. Please download some regions to enable map functionality.' : null return (
{/* Nav and alerts are overlayed */}

Back to Home

Manage Map Regions
{alertMessage && (
{ window.location.href = '/settings/maps' }, }} />
)}
) }