import React from 'react';
import classNames from 'classnames';
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
export const CardFooter = ({
  children,
  centerContent,
  leftContent,
  rightContent,
  className,
  testId,
  hasTopBorder = false,
  isCentered = false
}) => {
  return /*#__PURE__*/_jsx("div", {
    "test-id": testId,
    className: classNames('custom-card-footer', {
      'has-top-border': hasTopBorder
    }, {
      'has-children': !!children
    }, {
      centered: isCentered
    }, className),
    children: children || /*#__PURE__*/_jsxs(_Fragment, {
      children: [leftContent && /*#__PURE__*/_jsx("div", {
        className: "left-content",
        children: leftContent
      }), centerContent && /*#__PURE__*/_jsx("div", {
        className: "center-content",
        children: centerContent
      }), rightContent && /*#__PURE__*/_jsx("div", {
        className: "right-content",
        children: rightContent
      })]
    })
  });
};