// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import * as React from 'react'; import { ArvadosTheme } from '~/common/custom-theme'; import { StyleRulesCallback, withStyles, WithStyles, Card, CardHeader, CardContent, Grid, Switch } from '@material-ui/core'; type CssRules = 'root' | 'label' | 'value' | 'switch' | 'grid'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ root: { fontSize: '0.875rem' }, label: { color: theme.palette.grey["500"], marginBottom: theme.spacing.unit }, value: { marginBottom: theme.spacing.unit }, switch: { '& span:first-child': { height: '18px' } }, grid: { marginLeft: '22px' } }); type SubprocessesProps = WithStyles; export const SubprocessesCard = withStyles(styles)( class extends React.Component { state = { queued: true, active: true, completed: true, failed: true }; handleChange = (name: string) => (event: any) => { this.setState({ [name]: event.target.checked }); } render() { const { classes } = this.props; return ( Subprocesses: Queued: Active: 1 2 3   Completed: Failed:   2 1 ); } } );