import React from 'react';

// Components

import Button from '../button';
import Dropdown from '../dropdown'

const HeaderActions = ({primary, secondary}) =>  {
      return (
          <div data-focus='content-actions'>
              {primary.map((primary) => {
                  if(Array.isArray(primary.action)) {
                      return <Dropdown iconProps={{name: primary.icon}} operationList={primary.action} shape='fab'/>;
                  } else {
                      return (
                          <Button key={primary.label} handleOnClick={primary.action} icon={primary.icon} label={primary.label} shape='fab' style={{className: primary.className}} type='button'/>
                      );
                  }
              })}
              <Dropdown iconProps={{name: 'more_vert'}} operations={secondary} shape='fab'/>
          </div>
      );
};


export default HeaderActions;

@@ -757,16 +757,31 @@
         
+ %7B secondary &&
  %3CDropdo
@@ -851,16 +851,17 @@
 ='fab'/%3E
+%7D
 %0A       

Fix secondary actions