1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { RouterState } from "react-router-redux";
6 import { matchProcessRoute } from "routes/routes";
8 export interface ProcessPanel {
9 containerRequestUuid: string;
10 filters: { [status: string]: boolean };
13 export const getProcessPanelCurrentUuid = (router: RouterState) => {
14 const pathname = router.location ? router.location.pathname : '';
15 const match = matchProcessRoute(pathname);
16 return match ? match.params.id : undefined;