1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import * as React from 'react';
6 import { MuiThemeProvider, createMuiTheme, StyleRulesCallback, withStyles, WithStyles } from '@material-ui/core/styles';
7 import { CodeSnippet } from '~/components/code-snippet/code-snippet';
8 import grey from '@material-ui/core/colors/grey';
10 type CssRules = 'codeSnippet';
12 const styles: StyleRulesCallback<CssRules> = () => ({
18 const theme = createMuiTheme({
25 backgroundColor: '#000'
30 fontFamily: 'monospace',
31 useNextVariants: true,
35 interface ProcessLogCodeSnippetProps {
39 export const ProcessLogCodeSnippet = withStyles(styles)(
40 (props: ProcessLogCodeSnippetProps & WithStyles<CssRules>) =>
41 <MuiThemeProvider theme={theme}>
42 <CodeSnippet lines={props.lines} className={props.classes.codeSnippet} />