import React from 'react';
import { storiesOf } from '@storybook/react';
import ToolbarList from './index';

const mockIcons = [
    {
        key: 'save',
        identifier: 'save',
        function: 'saveConfiguration',
    },
    {
        key: 'mail',
        identifier: 'mail',
        function: 'sendMail',
    },
    {
        key: 'picture_as_pdf',
        identifier: 'picture_as_pdf',
        function: 'savePDf',
    },
    {
        key: 'help',
        identifier: 'help',
        function: 'help',
    },
];

storiesOf('Toolbar', module).add('with Icons', () => <ToolbarList tools={mockIcons} color="secondary" />);
