export function buildSettingsTrayMenu(s) {
    const statusLabel = s.connected ? "\u25CF Connected" : "\u25CB Disconnected";
    const accountLabel = s.account || "Not configured";
    const tooltip = s.pendingCount > 0
        ? `mailpouch · ${s.pendingCount} agent(s) awaiting approval`
        : "mailpouch";
    const items = [
        { id: "header", label: "mailpouch", enabled: false },
        { id: "version", label: `v${s.version}`, enabled: false },
        { id: "sep1", label: "", separator: true },
        { id: "status", label: statusLabel, enabled: false },
        { id: "account", label: accountLabel, enabled: false },
        ...(s.pendingCount > 0
            ? [{ id: "pending", label: `\u26A0 ${s.pendingCount} agent(s) pending`, enabled: false }]
            : []),
        ...(s.activeCount > 0
            ? [{ id: "active", label: `\u25CF ${s.activeCount} agent(s) active`, enabled: false }]
            : []),
        { id: "sep2", label: "", separator: true },
        // UI-005/UI-007: only offer "Open Settings" when the UI is actually up.
        ...(s.settingsEnabled && s.settingsUrl
            ? [{ id: "open", label: "Open Settings" }]
            : []),
        { id: "sep3", label: "", separator: true },
        {
            id: s.settingsEnabled ? "disable" : "enable",
            label: s.settingsEnabled ? "Disable Settings UI" : "Enable Settings UI",
        },
        { id: "sep4", label: "", separator: true },
        { id: "quit", label: "Quit" },
    ];
    return { items, tooltip };
}
//# sourceMappingURL=tray-menu.js.map