// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import * as React from 'react'; import { Grid } from '@material-ui/core'; import { ProcessInformationCard } from './process-information-card'; import { DefaultView } from '~/components/default-view/default-view'; import { ProcessIcon } from '~/components/icon/icon'; import { Process } from '~/store/processes/process'; import { SubprocessesCard } from './subprocesses-card'; import { ProcessSubprocesses } from '~/views/process-panel/process-subprocesses'; import { SubprocessFilterDataProps } from '~/components/subprocess-filter/subprocess-filter'; export interface ProcessPanelRootDataProps { process?: Process; subprocesses: Array; filters: Array; totalSubprocessesLength: number; } export interface ProcessPanelRootActionProps { onContextMenu: (event: React.MouseEvent) => void; onToggle: (status: string) => void; } export type ProcessPanelRootProps = ProcessPanelRootDataProps & ProcessPanelRootActionProps; export const ProcessPanelRoot = (props: ProcessPanelRootProps) => props.process ? : ;