/*
 * @Author: 赵伟
 * @Date: 2024-10-10 10:54:25
 * @Description: 自定义 Confirm Modal
 */

import classNames from 'classnames';
import KFModal, { KFModalProps } from '../KFModal';
import './index.less';

export interface KFConfirmModalProps extends KFModalProps {
  content: string;
}
function KFConfirmModal({
  title,
  image,
  className = '',
  centered,
  maskClosable,
  content,
  ...rest
}: KFConfirmModalProps) {
  return (
    <KFModal
      className={classNames(['kf-confirm-modal', className])}
      {...rest}
      centered={centered ?? true}
      maskClosable={maskClosable ?? false}
      title={title}
      image={image ?? require('@/assets/img/edit-experiment.png')}
    >
      <div className="kf-confirm-modal__content">{content}</div>
    </KFModal>
  );
}

export default KFConfirmModal;
