export function currentPath(): string { if (!window || !window.location) { return ""; } return window.location.pathname; }