import React from "react"
import clsx from "clsx"

import { ModalContentProps } from "../interface"

/**
 * ModalContent组件
 */
const ModalContent: React.FC<ModalContentProps> = props => {
  const { padding, classes, children } = props

  return <div className={clsx({ ["p-6"]: padding !== "none" }, classes?.content || "")}>{children}</div>
}

export default ModalContent
