// Copyright (C) The Arvados Authors. All rights reserved.
//
// SPDX-License-Identifier: AGPL-3.0
import * as React from 'react';
import { Grid, StyleRulesCallback, Divider } from '@material-ui/core';
import { Field, WrappedFieldProps, WrappedFieldArrayProps, FieldArray, FieldsProps } from 'redux-form';
import { PermissionSelect } from './permission-select';
import { WithStyles } from '@material-ui/core/styles';
import withStyles from '@material-ui/core/styles/withStyles';
export default () =>
;
const SharingManagementFieldArray = ({ fields }: WrappedFieldArrayProps<{ email: string }>) =>
{
fields.map((field, index, fields) =>
)
}
;
const permissionManagementRowStyles: StyleRulesCallback<'root'> = theme => ({
root: {
padding: `${theme.spacing.unit}px 0`,
}
});
const PermissionManagementRow = withStyles(permissionManagementRowStyles)(
({ field, index, fields, classes }: { field: string, index: number, fields: FieldsProps<{ email: string }> } & WithStyles<'root'>) =>
<>
{fields.get(index).email}
>
);
const PermissionSelectComponent = ({ input }: WrappedFieldProps) =>
;