import React from 'react'; // A Bootstrap dropdown of links. The server decides the items (label, href, // and for non-GET links `method` and `confirm`); we render them with the // data-method / data-confirm attributes that jquery_ujs already handles, and // Bootstrap's delegated data-api drives the dropdown, so neither needs to // know about React. export default function ActionsMenu({id, actions, label = 'Actions', ariaLabel, className = 'btn dropdown-toggle', onSelect}) { if (!actions || actions.length === 0) return null; const buttonId = `actions-${id}`; return (