// (C) 2007-2026 GoodData Corporation
import { defineMessage } from "react-intl";
const WORKSPACE_SETTINGS_MENU_ITEM_ID = defineMessage({ id: "gs.header.workspaceSettings" }).id;
/**
 * @internal
 */
export const LOGOUT_MENU_ITEM_ID = defineMessage({ id: "gs.header.logout" }).id;
/**
 * @internal
 */
export function generateHeaderAccountMenuItems(workspacePermissions, workspaceId, featureFlags) {
    const { canManageProject } = workspacePermissions;
    const accountMenuItems = [];
    const workspaceSettingsItem = {
        key: WORKSPACE_SETTINGS_MENU_ITEM_ID,
        className: "s-workspace-settings",
        href: `/workspaces/${workspaceId}/settings`,
    };
    const logoutItem = {
        key: LOGOUT_MENU_ITEM_ID,
        className: "s-logout",
    };
    if (canManageProject && featureFlags?.enableWorkspaceSettingsAppHeaderMenuItem) {
        accountMenuItems.push(workspaceSettingsItem);
    }
    accountMenuItems.push(logoutItem);
    return accountMenuItems;
}
//# sourceMappingURL=generateHeaderAccountMenuItems.js.map