// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import React from 'react'; import { withStyles, WithStyles, StyleRulesCallback, FormControl, Select, MenuItem, Input } from '@material-ui/core'; import { ArvadosTheme } from 'common/custom-theme'; type CssRules = 'formControl'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ formControl: { minWidth: theme.spacing.unit * 15, } }); export interface FilterOption { label: string; value: string; } export interface ProcessLogFormDataProps { selectedFilter: FilterOption; filters: FilterOption[]; } export interface ProcessLogFormActionProps { onChange: (filter: FilterOption) => void; } type ProcessLogFormProps = ProcessLogFormDataProps & ProcessLogFormActionProps & WithStyles; export const ProcessLogForm = withStyles(styles)( ({ classes, selectedFilter, onChange, filters }: ProcessLogFormProps) =>
} name="eventType"> { filters.map(option => {option.label} ) }
);