1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { reduxForm } from 'redux-form';
6 import { compose } from 'redux';
7 import { connect } from 'react-redux';
8 import SharingPublicAccessFormComponent from './sharing-public-access-form-component';
9 import { SHARING_PUBLIC_ACCESS_FORM_NAME } from '~/store/sharing-dialog/sharing-dialog-types';
10 import { RootState } from '~/store/store';
11 import { getSharingPublicAccessFormData } from '../../store/sharing-dialog/sharing-dialog-types';
13 export const SharingPublicAccessForm = compose(
15 { form: SHARING_PUBLIC_ACCESS_FORM_NAME }
18 (state: RootState) => {
19 const { visibility } = getSharingPublicAccessFormData(state);
20 return { visibility };
23 )(SharingPublicAccessFormComponent);