UNPKG

matrix-react-sdk

Version:
26 lines (25 loc) 675 B
import React, { ReactNode } from "react"; import { RoomMember } from "matrix-js-sdk/src/matrix"; interface IProps { member: RoomMember; action: string; title: string; askReason?: boolean; danger?: boolean; children?: ReactNode; className?: string; roomId?: string; onFinished: (success?: boolean, reason?: string) => void; } interface IState { reason: string; } export default class ConfirmUserActionDialog extends React.Component<IProps, IState> { static defaultProps: Partial<IProps>; constructor(props: IProps); private onOk; private onCancel; private onReasonChange; render(): React.ReactNode; } export {};