// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import React from 'react'; import { Field, WrappedFieldProps, FieldArray, WrappedFieldArrayProps } from 'redux-form'; import { CustomStyleRulesCallback } from 'common/custom-theme'; import { Grid, FormControl, InputLabel } from '@mui/material'; import { PermissionSelect, parsePermissionLevel, formatPermissionLevel } from './permission-select'; import { ParticipantSelect, Participant } from './participant-select'; import { WithStyles } from '@mui/styles'; import withStyles from '@mui/styles/withStyles'; import { ArvadosTheme } from 'common/custom-theme'; type SharingStyles = 'root'; const styles: CustomStyleRulesCallback = (theme: ArvadosTheme) => ({ root: { padding: `${theme.spacing(1)} 0`, }, }); const SharingInvitationFormComponent = (props: { onSave: () => void }) => export default SharingInvitationFormComponent; const StyledSharingInvitationFormComponent = withStyles(styles)( ({ classes }: { onSave: () => void } & WithStyles) => ); const InvitedPeopleField = () => ; const InvitedPeopleFieldComponent = ({ fields }: WrappedFieldArrayProps) => ; const PermissionSelectField = () => ; const PermissionSelectComponent = ({ input }: WrappedFieldProps) => Authorization ;