UNPKG

@grafana/ui

Version:
23 lines (18 loc) 774 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var jsxRuntime = require('react/jsx-runtime'); var i18n = require('@grafana/i18n'); var Icon = require('../../Icon/Icon.cjs'); "use strict"; function RowExpander({ row, tableStyles }) { return /* @__PURE__ */ jsxRuntime.jsx("div", { className: tableStyles.expanderCell, ...row.getToggleRowExpandedProps(), children: /* @__PURE__ */ jsxRuntime.jsx( Icon.Icon, { "aria-label": row.isExpanded ? i18n.t("grafana-ui.row-expander.collapse", "Collapse row") : i18n.t("grafana-ui.row-expander.expand", "Expand row"), name: row.isExpanded ? "angle-down" : "angle-right", size: "lg" } ) }); } exports.RowExpander = RowExpander; //# sourceMappingURL=RowExpander.cjs.map