@orfeas126/box-ui-elements
Version:
Box UI Elements
32 lines (28 loc) • 868 B
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 default {
title: 'Elements/ContentSharing',
component: ContentSharing,
args: {
apiHost: DEFAULT_HOSTNAME_API,
config: { showEmailSharedLinkForm: false, showInviteCollaboratorMessageSection: false },
displayInModal: false,
itemType: TYPE_FILE,
},
argTypes: {
itemType: {
options: [TYPE_FILE, TYPE_FOLDER],
control: { type: 'select' },
},
},
};