//
// SPDX-License-Identifier: AGPL-3.0
+import { RouterState } from "react-router-redux";
+import { matchProcessRoute } from "routes/routes";
+
export interface ProcessPanel {
containerRequestUuid: string;
filters: { [status: string]: boolean };
}
+
+export const getProcessPanelCurrentUuid = (router: RouterState) => {
+ const pathname = router.location ? router.location.pathname : '';
+ const match = matchProcessRoute(pathname);
+ return match ? match.params.id : undefined;
+};
\ No newline at end of file