1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import * as React from 'react';
6 import { Grid } from '@material-ui/core';
7 import { Process } from '~/store/processes/process';
8 import { ProcessLogMainCard } from '~/views/process-log-panel/process-log-main-card';
9 import { ProcessLogFormDataProps, ProcessLogFormActionProps } from '~/views/process-log-panel/process-log-form';
10 import { DefaultView } from '~/components/default-view/default-view';
11 import { ProcessIcon } from '~/components/icon/icon';
12 import { CodeSnippetDataProps } from '~/components/code-snippet/code-snippet';
14 export type ProcessLogPanelRootDataProps = {
16 } & ProcessLogFormDataProps & CodeSnippetDataProps;
18 export type ProcessLogPanelRootActionProps = {
19 onContextMenu: (event: React.MouseEvent<HTMLElement>) => void;
20 } & ProcessLogFormActionProps;
22 export type ProcessLogPanelRootProps = ProcessLogPanelRootDataProps & ProcessLogPanelRootActionProps;
24 export const ProcessLogPanelRoot = (props: ProcessLogPanelRootProps) =>
26 ? <Grid container spacing={16}>
28 process={props.process}
36 messages={['Process Log not found']} />