import { PathId } from "../routes.js";
//#region src/store/router-params.ts
/** Getter function for router parameters */
function getRouterParams(router) {
	return () => {
		const pathParams = {
			[PathId.Collection]: "default",
			[PathId.Environment]: "default",
			[PathId.Request]: "default",
			[PathId.Examples]: "default",
			[PathId.Schema]: "default",
			[PathId.Cookies]: "default",
			[PathId.Servers]: "default",
			[PathId.Workspace]: "default",
			[PathId.Settings]: "default"
		};
		const currentRoute = router?.currentRoute.value;
		if (currentRoute) Object.keys(pathParams).forEach((k) => {
			if (currentRoute.params[k]) pathParams[k] = currentRoute.params[k];
		});
		return pathParams;
	};
}
//#endregion
export { getRouterParams };

//# sourceMappingURL=router-params.js.map