export default function LocationMapSetupPanel({ hasAnyMap, canManage, zoneCount = 0, saving, savingAction, onContinue, onPreview, onPublish, onCreateFromZones, onCreateBlank, }) { const hasZones = zoneCount > 0; const createFromZonesLabel = `Create From ${zoneCount} Zone${zoneCount === 1 ? "" : "s"}`; const createBlankLabel = savingAction === "create-blank" ? "Creating..." : "Create Blank Map"; const createZonesButtonLabel = savingAction === "create-zones" ? "Creating..." : createFromZonesLabel; const publishLabel = savingAction === "publish" ? "Publishing..." : "Publish"; return (

{hasAnyMap ? "Draft Map" : "No Map"}

{canManage ? (
Zones {zoneCount}
) : null} {hasAnyMap && canManage ? (
) : !hasAnyMap && canManage ? (
{!hasZones ? ( ) : ( <> )}
) : null}
); }