box-ui-elements
Version:
Box UI Elements
50 lines (45 loc) • 1.28 kB
JavaScript
// @flow
import * as React from 'react';
import { DEFAULT_HOSTNAME_API, TYPE_FILE, TYPE_FOLDER } from '../../../constants';
import Button from '../../../components/button/Button';
import ContentSharing from '../ContentSharing';
export const basic = {};
export const withCustomButton = {
args: {
displayInModal: true,
customButton: <Button>✿ Launch ContentSharing ✿</Button>,
},
};
export const withContentSharingV2Enabled = {
args: {
children: <button>Open Unified Share Modal</button>,
features: {
...global.FEATURE_FLAGS,
contentSharingV2: true,
},
hasProviders: true,
},
};
export default {
title: 'Elements/ContentSharing',
component: ContentSharing,
args: {
apiHost: DEFAULT_HOSTNAME_API,
config: { showEmailSharedLinkForm: false, showInviteCollaboratorMessageSection: false },
displayInModal: false,
itemType: TYPE_FILE,
itemID: global.FILE_ID,
token: global.TOKEN,
},
argTypes: {
itemType: {
options: [TYPE_FILE, TYPE_FOLDER],
control: { type: 'select' },
},
},
parameters: {
chromatic: {
disableSnapshot: true,
},
},
};