UNPKG

@carbon/ibm-security

Version:

Carbon for Cloud & Cognitive IBM Security UI components

26 lines (24 loc) 1.01 kB
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; var _excluded = ["className"]; /** * @file Table overflow cell that holds an Overflow Menu inside a Data Table. * @copyright IBM Security 2019 - 2021 */ import { TableCell as CarbonTableCell } from 'carbon-components-react'; import classnames from 'classnames'; import React from 'react'; import { overflowCellNamespace } from './constants'; /** * Proxies TableCell component with extra classname for positioning. */ var TableOverflowCell = function TableOverflowCell(_ref) { var className = _ref.className, props = _objectWithoutProperties(_ref, _excluded); return /*#__PURE__*/React.createElement(CarbonTableCell, _extends({ className: classnames(overflowCellNamespace, className) }, props)); }; TableOverflowCell.propTypes = CarbonTableCell.propTypes; TableOverflowCell.defaultProps = CarbonTableCell.defaultProps; export default TableOverflowCell;