UNPKG

816 BTypeScriptView Raw
1import type { PanelProps } from 'rc-dialog/lib/Dialog/Content/Panel';
2import * as React from 'react';
3import type { ModalProps, ModalFuncProps } from './Modal';
4export interface PurePanelProps extends Omit<PanelProps, 'prefixCls'>, Pick<ModalFuncProps, 'type'> {
5 prefixCls?: string;
6 style?: React.CSSProperties;
7}
8export declare function renderCloseIcon(prefixCls: string, closeIcon?: React.ReactNode): JSX.Element;
9export declare function renderFooter(props: Pick<ModalProps, 'footer' | 'okText' | 'okType' | 'cancelText' | 'confirmLoading' | 'okButtonProps' | 'cancelButtonProps'> & {
10 onOk?: React.MouseEventHandler;
11 onCancel?: React.MouseEventHandler;
12}): string | number | boolean | React.ReactFragment | JSX.Element | null;
13export default function PurePanel(props: PurePanelProps): JSX.Element;