"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.CardHeader = void 0;
var _react = _interopRequireDefault(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const CardHeader = ({
  children,
  className,
  centerContent,
  leftContent,
  rightContent,
  testId,
  isCentered = false
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
  "test-id": testId,
  className: (0, _classnames.default)('custom-card-header', {
    'has-children': !!children
  }, {
    centered: isCentered
  }, className),
  children: children || /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
    children: [leftContent && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
      className: "left-content",
      children: leftContent
    }), centerContent && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
      className: "center-content",
      children: centerContent
    }), rightContent && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
      className: "right-content",
      children: rightContent
    })]
  })
});
exports.CardHeader = CardHeader;