"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.TableCaption = void 0;
var _classnames = _interopRequireDefault(require("classnames"));
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const TableCaption = _ref => {
  let {
    children,
    className,
    _id,
    _scrollActive,
    _scrollableNotice,
    ...tableCaptionProps
  } = _ref;
  const classes = (0, _classnames.default)('ds-c-table__caption', className);
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("caption", {
    className: classes,
    id: _id,
    ...tableCaptionProps,
    children: [children, _scrollActive && _scrollableNotice]
  });
};

// Set component name to make child.type.displayName available to other components (eg. Table)
exports.TableCaption = TableCaption;
TableCaption.displayName = 'TableCaption';
var _default = exports.default = TableCaption;