import React from 'react' import { storiesOf } from '@storybook/react' import { withKnobs, text } from '@storybook/addon-knobs/react'; import { BooleanValue } from 'react-values' import styled from '@emotion/styled'; import { GroupButtonsMenu, DropDownItem, Button } from 'asc-web-components' const GroupButtonsMenuContainer = styled.div` height: 2000px; `; const peopleItems = [ { label: 'Select', isDropdown: true, isSeparator: true, isSelect: true, fontWeight: 'bold', children: [ , , ], onSelect: (a) => console.log(a) }, { label: 'Make employee', onClick: () => console.log('Make employee action') }, { label: 'Make guest', onClick: () => console.log('Make guest action') }, { label: 'Set active', onClick: () => console.log('Set active action') }, { label: 'Set disabled', onClick: () => console.log('Set disabled action') }, { label: 'Invite again', onClick: () => console.log('Invite again action') }, { label: 'Send e-mail', onClick: () => console.log('Send e-mail action') }, { label: 'Delete', onClick: () => console.log('Delete action') } ]; storiesOf('EXAMPLES|GroupButtonsMenu', module) .addDecorator(withKnobs) .add('people', () => ( {({ value: visible, toggle }) => ( <>