// 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'; import { SubprocessFilter } from '~/components/subprocess-filter/subprocess-filter'; import { SubprocessFilterDataProps } from '~/components/subprocess-filter/subprocess-filter'; import { Process } from '~/store/processes/process'; type CssRules = 'root'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ root: { fontSize: '0.875rem' } }); interface SubprocessesDataProps { subprocesses: Array; filters: SubprocessFilterDataProps[]; onToggle: (filter: SubprocessFilterDataProps) => void; } type SubprocessesProps = SubprocessesDataProps & WithStyles; export const SubprocessesCard = withStyles(styles)( ({ classes, filters, subprocesses, onToggle }: SubprocessesProps) => { filters.map(filter => onToggle(filter)} /> ) } );