Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

395 B
Raw Blame
import {
  ALL_PROJECTS_ACCESS,
  type ProjectAccessValue,
} from "./project-access-value";

export function getInvitationProjectAccess(invitation: {
  projectAccess?: string | null;
  projectIds?: string[] | null;
}): ProjectAccessValue {
  return invitation.projectAccess === "selected"
    ? { projectAccess: "selected", projectIds: invitation.projectIds ?? [] }
    : ALL_PROJECTS_ACCESS;
}