import React, { forwardRef } from "react";
import cn from "classnames";
import PropTypes from "prop-types";

export interface IModalBodyProps {
  className?: string;
}

const ModalBody: React.FC<IModalBodyProps> = forwardRef(
  ({ children, className }, ref: React.Ref<HTMLDivElement>) => {
    return (
      <div ref={ref} className={cn("modal-body", className)}>
        {children}
      </div>
    );
  }
);

ModalBody.displayName = "ModalBody";

ModalBody.propTypes = {
  className: PropTypes.string
};

export default ModalBody;
