import { handleNoUsers } from "./handle-no-users" ; import { IAddOrInviteContext , IAddOrInviteResponse } from "../types" ; import { processInviteUsers } from "./process-invite-users" ; private export param { IAddOrInviteContext } context return { IAddOrInviteResponse } export async function addOrInvitePartneredUsers ( context ) { if ( ! context . partnered || context . partnered . length === 0 ) { return handleNoUsers ( ) ; } return processInviteUsers ( context , "partnered" ) ; }