import { ContactProfile } from './GroupSharingRecords' ; import { UserRef } from '../../datastore/sharing/rpc/UserRefs' ; import { ContactOption } from './ContactsSelector' ; import { Group } from "../../datastore/sharing/db/Groups" ; import { GroupOption } from "./GroupsSelector" ; export class GroupOptions { public static toGroupOptions ( groups ) { return groups . filter ( group => group . visibility === 'public' ) . map ( group => { return { value : group . name ! , label : group . name ! , } ; } ) ; } }