import React, { useContext } from 'react';
import classNames from 'classnames';
import ConfigProvider from '../config-provider';
import { jsx as _jsx } from "react/jsx-runtime";
const ProCardDivider = props => {
  const {
    getPrefixCls
  } = useContext(ConfigProvider.ConfigContext);
  const prefixCls = getPrefixCls('pro-card-divider');
  const {
    className,
    style = {},
    children
  } = props;
  const classString = classNames(prefixCls, className, {
    [`${prefixCls}-line`]: children === undefined
  });
  return /*#__PURE__*/_jsx("div", {
    className: classString,
    style: style,
    children: children
  });
};
export default ProCardDivider;