UNPKG

@grafana/ui

Version:
24 lines (21 loc) 778 B
import { jsx } from 'react/jsx-runtime'; import { css } from '@emotion/css'; import '@grafana/data'; import { useStyles2 } from '../../../../themes/ThemeContext.mjs'; import 'micro-memoize'; import '@emotion/react'; import 'tinycolor2'; import '../../../../utils/skeleton.mjs'; import { ActionButton } from '../../../Actions/ActionButton.mjs'; const ActionsCell = ({ actions }) => { const styles = useStyles2(getStyles); return /* @__PURE__ */ jsx("div", { className: styles.buttonsGap, children: actions && actions.map((action, i) => /* @__PURE__ */ jsx(ActionButton, { action, variant: "secondary" }, i)) }); }; const getStyles = (theme) => ({ buttonsGap: css({ display: "flex", gap: 6 }) }); export { ActionsCell }; //# sourceMappingURL=ActionsCell.mjs.map