import type { ProposalIdentifier } from '../types' ; export function getProposalIdentifier ( url ) { const parsedURL = new URL ( url ) ; const [ , space , , id ] = parsedURL . hash . split ( '/' ) ; return { id , space , } ; }