usePath
Get the current decodeURIComponent-ed path of the page. If basePath is provided and missing from the current path null is returned.
decodeURIComponent
basePath
null
export function usePath(basePath?: string): string