UNPKG

box-ui-elements

Version:
50 lines (45 loc) 1.28 kB
// @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>&#10047; Launch ContentSharing &#10047;</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, }, }, };