content: import React from 'react';
  import {Button, Icon} from 'antd';
  
  function makeButton(defaultTitle, buttonType, iconName) {
    return ({title = defaultTitle, onClick}) => (
      <Button type={buttonType} onClick={onClick}>
        <Icon type={iconName} />
        {title}
      </Button>
    );
  }
  
  export const AddButton = makeButton('Add', 'primary', 'plus-circle');
  export const EditButton = makeButton('Edit', 'primary', 'edit');
  