+ {sync.environmentId === null + ? "Off" + : sync.status === "synced" + ? `Following ${active?.label ?? "your saved environment"}` + : sync.status === "syncing" + ? "Syncing…" + : sync.status === "error" + ? "Sync paused. Reconnect to the profile environment to try again." + : "Offline. Changes stay on this device until the profile environment reconnects."} +
+ {sync.conflicts.length > 0 ? ( ++ Newer saved preferences replaced conflicting edits. Change a preference again to use + your choice. +
+ ) : null} ++ Connect to an updated private environment to set up sync. +
+ ) : null} + {selected && !permission ? ( ++ Settings access is required. Update this connection’s permissions in Connections. +
+ ) : null} + {saved ? ( ++ {saved.profile.revision === 0 + ? "No profile saved. Publish this device’s current preferences to start." + : "Use the saved profile, or publish this device’s current preferences. Other participating devices will follow it."} +
++ {error} +
+ ) : null} +