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