import { EasyCoderElement } from '@easy-coder/sdk/store';

export type ModalPlacement = 'center' | 'bottom' | 'top' | 'left' | 'right';
export interface ModalProps extends EasyCoderElement.DataProps {
    header?: React.ReactNode;
    content: React.ReactNode;
    visible?: boolean;
    width?: number | string;
    height?: number | string;
    placement?: ModalPlacement;
    style?: React.CSSProperties;
    className?: string;
    zIndex?: number;
    preventMouseOver?: boolean;
    preventAutoClose?: boolean;
    onVisibleChange?: (visible: boolean) => void;
    onClose?: () => void;
    getContainer?: () => HTMLElement;
}
