PromoCursed/node_modules/rc-dialog/lib/Dialog/Content/Panel.d.ts
2024-08-20 23:25:37 +04:00

16 lines
559 B
TypeScript

import React from 'react';
import type { IDialogPropTypes } from '../../IDialogPropTypes';
export interface PanelProps extends Omit<IDialogPropTypes, 'getOpenCount'> {
prefixCls: string;
ariaId?: string;
onMouseDown?: React.MouseEventHandler;
onMouseUp?: React.MouseEventHandler;
holderRef?: React.Ref<HTMLDivElement>;
}
export type ContentRef = {
focus: () => void;
changeActive: (next: boolean) => void;
};
declare const Panel: React.ForwardRefExoticComponent<PanelProps & React.RefAttributes<ContentRef>>;
export default Panel;