import { Arrays } from "polar-shared/src/util/Arrays" ; import { BlockTargetStr } from "./NoteLinkLoader" ; import { BlockIDStr } from "./store/BlocksStore" ; export interface INoteURL { /**
     * The ID or node name as a target.
     */ readonly target : BlockIDStr | BlockTargetStr ; } export namespace NoteURLs { export function parse ( url ) { const target = Arrays . last ( url . split ( '/' ) ) ; if ( target ) { return { target } ; } else { return undefined ; } } }