UNPKG

@talend/react-components

Version:
32 lines 928 B
import PropTypes from 'prop-types'; import Inject from '../../Inject'; import ActionDropdown from '../../Actions/ActionDropdown'; import { getTheme } from '../../theme'; import headerBarCssModule from '../HeaderBar.module.scss'; import { jsx as _jsx } from "react/jsx-runtime"; const theme = getTheme(headerBarCssModule); export function Environment({ getComponent, ...props }) { const Renderers = Inject.getAll(getComponent, { ActionDropdown }); return /*#__PURE__*/_jsx("li", { role: "presentation", className: theme('tc-header-bar-action'), children: /*#__PURE__*/_jsx(Renderers.ActionDropdown, { bsStyle: "link", icon: "talend-environment", tooltipPlacement: "bottom", ...props }) }); } Environment.propTypes = { getComponent: PropTypes.func, renderers: PropTypes.shape({ ActionDropdown: PropTypes.func }) }; //# sourceMappingURL=Environment.component.js.map