1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import React from 'react';
6 import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles';
7 import { VirtualCodeSnippet, CodeSnippetDataProps } from 'components/code-snippet/virtual-code-snippet';
8 import grey from '@material-ui/core/colors/grey';
9 import { themeOptions } from 'common/custom-theme';
11 const theme = createMuiTheme(Object.assign({}, themeOptions, {
18 backgroundColor: grey["200"]
23 fontFamily: 'monospace',
24 useNextVariants: true,
28 export const DefaultVirtualCodeSnippet = (props: CodeSnippetDataProps) =>
29 <MuiThemeProvider theme={theme}>
30 <VirtualCodeSnippet {...props} />