import React from 'react';

const propTypes = {
  title: React.PropTypes.string,
};

const SidebarMenuHeader = ({ title }) => (
  <li className="header">
    {title}
  </li>
);

SidebarMenuHeader.propTypes = propTypes;

export default SidebarMenuHeader;

import React from 'react';
import classNames from 'classnames';

const propTypes = {
  children: React.PropTypes.node,
  className: React.PropTypes.string,
};

const SidebarMenuHeader = ({
  children,
  className,
}) => {
  const classes = {
    header: true,
  };

  return (
    <li className={classNames(className, classes)}>
      {children}
    </li>
  );
};

SidebarMenuHeader.propTypes = propTypes;

export default SidebarMenuHeader;

Remove title prop in favor of children
Remove title prop in favor of children
