1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import * as React from 'react';
6 import { Field, WrappedFieldProps } from 'redux-form';
7 import { Grid, Input, FormControl, FormHelperText, FormLabel, InputLabel, Chip } from '@material-ui/core';
8 import { ChipsInput } from '~/components/chips-input/chips-input';
9 import { identity } from 'lodash';
10 import { PermissionSelect } from './permission-select';
11 import { PeopleSelect } from './people-select';
12 import ChipInput from 'material-ui-chip-input';
15 <Grid container spacing={8}>
17 <InvitedPeopleField />
20 <PermissionSelectField />
24 const InvitedPeopleField = () =>
27 component={InvitedPeopleFieldComponent} />;
30 const InvitedPeopleFieldComponent = (props: WrappedFieldProps) =>
31 <PeopleSelect suggestedPeople={[]} />;
33 const PermissionSelectField = () =>
36 component={PermissionSelectComponent} />;
38 const PermissionSelectComponent = ({ input }: WrappedFieldProps) =>
39 <FormControl fullWidth>
40 <InputLabel>Authorization</InputLabel>
41 <PermissionSelect {...input} />