function getImplicitRoleForMenu(attributes) {
  const type = getProp(attributes, 'type');

  if (type) {
    const value = getLiteralPropValue(type);

    return (value && value.toUpperCase() === 'TOOLBAR') ? 'toolbar' : '';
  }

  return '';
}
Returns the implicit role for a menu tag.