import { ConnectedSpace } from '../tuples/connected-space-types' ; import { Subject } from '../tuples/subject-types' ; export const buildSubjectShareUrl = async ( connectedSpace , subject ) : Promise < string > => { const { protocol , host } = window . location ; return `${ protocol }//${ host }/share/subject/${ subject . subjectId }` ; } ;