/* * @Author: ZhaoYing * @Date: 2026-02-02 15:23:01 * @Last Modified by: ZhaoYing * @Last Modified time: 2026-02-02 15:23:01 */ /** * RbModal Component * * A customized modal component that extends Ant Design's Modal with: * - Default width and styling * - Internationalized cancel button text * - Scrollable content area with max height * - Prevents closing on mask click * - Auto-destroys on hidden * * @component */ import { type FC } from 'react' import { Modal, type ModalProps } from 'antd' import { useTranslation } from 'react-i18next' import './index.css' /** Custom modal component wrapper with default configurations */ const RbModal: FC = ({ onOk, onCancel, children, className, ...props }) => { const { t } = useTranslation() return ( {/* Scrollable content container */}
{children}
) } export default RbModal