-import { LogEventType } from '../../models/log';
+import { RootState } from '../store';
+import { matchProcessLogRoute } from '~/routes/routes';
// Copyright (C) The Arvados Authors. All rights reserved.
//
// SPDX-License-Identifier: AGPL-3.0
[logType: string]: string[];
}
-export const getProcessLogs = ({ selectedFilter, logs }: ProcessLogsPanel) => {
+export const getProcessPanelLogs = ({ selectedFilter, logs }: ProcessLogsPanel) => {
return logs[selectedFilter];
};
+
+export const getProcessLogsPanelCurrentUuid = ({ router }: RootState) => {
+ const pathname = router.location ? router.location.pathname : '';
+ const match = matchProcessLogRoute(pathname);
+ return match ? match.params.id : undefined;
+};