import React from 'react';
import { storiesOf } from '@storybook/react';
import { Observable } from 'rxjs';
import { Dropdown } from './Dropdown';

storiesOf('Components/Dropdown', module).add('default', () => (
   <div className="m-4">
      <Dropdown
         menu={[
            {
               name: <b>First</b>,
               onClick: () => {
                  console.log('sdsd');
               },
            },
            {
               name: <b>First2</b>,
               onClick: () => {
                  console.log('sdsd');
               },
            },
         ]}
      >
         <button className="btn btn-dark" type="button">
            DropMenu
         </button>
      </Dropdown>
   </div>
));
