"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.CardFooter = 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 CardFooter = ({
  children,
  centerContent,
  leftContent,
  rightContent,
  className,
  testId,
  hasTopBorder = false,
  isCentered = false
}) => {
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
    "test-id": testId,
    className: (0, _classnames.default)('custom-card-footer', {
      'has-top-border': hasTopBorder
    }, {
      '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.CardFooter = CardFooter;