14841: Pass token when switching to workbench v1
[arvados-workbench2.git] / src / views-components / sharing-dialog / sharing-dialog-content.tsx
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import * as React from 'react';
6 import { Grid, Typography } from '@material-ui/core';
7
8 import { SharingInvitationForm } from './sharing-invitation-form';
9 import { SharingManagementForm } from './sharing-management-form';
10 import { SharingPublicAccessForm } from './sharing-public-access-form';
11
12 export const SharingDialogContent = (props: { advancedViewOpen: boolean }) =>
13     <Grid container direction='column' spacing={24}>
14         {props.advancedViewOpen &&
15             <>
16                 <Grid item>
17                     <Typography variant='subtitle1'>
18                         Who can access
19                     </Typography>
20                     <SharingPublicAccessForm />
21                     <SharingManagementForm />
22                 </Grid>
23             </>
24         }
25         <Grid item>
26             <SharingInvitationForm />
27         </Grid>
28     </Grid>;