2018-05-14 15:47:42 +00:00
|
|
|
/** @format */
|
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
2018-08-31 17:27:21 +00:00
|
|
|
/**
|
|
|
|
* `MenuTitle` is another valid Menu child, but this does not have any accessibility attributes associated
|
|
|
|
* (so this should not be used in place of the `EllipsisMenu` prop `label`).
|
|
|
|
*
|
|
|
|
* @return { object } -
|
|
|
|
*/
|
2018-05-14 15:47:42 +00:00
|
|
|
const MenuTitle = ( { children } ) => {
|
2018-06-01 14:35:18 +00:00
|
|
|
return <div className="woocommerce-ellipsis-menu__title">{ children }</div>;
|
2018-05-14 15:47:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
MenuTitle.propTypes = {
|
2018-08-31 17:27:21 +00:00
|
|
|
/**
|
|
|
|
* A renderable component (or string) which will be displayed as the content of this item.
|
|
|
|
*/
|
2018-05-14 15:47:42 +00:00
|
|
|
children: PropTypes.node,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default MenuTitle;
|