export default function LocationMapSetupPanel({ hasAnyMap, canManage, zoneCount = 0, saving, savingAction, onContinue, onPreview, onPublish, onCreateFromZones, onCreateBlank, }) { const description = hasAnyMap ? canManage ? "A draft map exists for this location." : "A map draft exists for this location, but it has not been published yet." : canManage ? "Create a rough map for this store location." : "A household admin has not published a map yet."; const hasZones = zoneCount > 0; const createFromZonesLabel = hasZones ? `Create From ${zoneCount} Zone${zoneCount === 1 ? "" : "s"}` : "Create From Zones"; 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"}

{description}

{hasAnyMap && canManage ? (
) : !hasAnyMap && canManage ? (
{!hasZones ? (

No zones are available yet. Create a blank map now, or add zones first for an automatic starter layout.

) : null} {!hasZones ? ( <> ) : ( <> )}
) : null}
); }