import { IModel , getProp } from "@esri/hub-common" ; param { object } siteModel private export function _getSecondPassSharingOptions ( siteModel ) { return [ { prop : "item.properties.contentGroupId" , itemControl : false } , { prop : "item.properties.collaborationGroupId" , itemControl : true } ] . reduce ( ( acc , entry ) => { const groupId = getProp ( siteModel , entry . prop ) ; if ( groupId ) { acc . push ( { id : groupId , confirmItemControl : entry . itemControl } ) ; } return acc ; } , [ ] ) ; }