@botonic/react
Version:
Build Chatbots using React
22 lines (21 loc) • 866 B
TypeScript
import React from 'react';
import { WebchatMessage } from '../index-types';
interface DisabledProps {
disabled?: boolean;
autodisable?: boolean | string;
disabledstyle?: Record<string, string> | string;
}
interface AdditionalProps {
parentId: string;
disabled?: boolean;
setDisabled: (disabled: boolean) => void;
}
export declare class ButtonsDisabler {
static constructBrowserProps(props: DisabledProps): DisabledProps;
static constructNodeProps(props: DisabledProps): DisabledProps;
static withDisabledProps(props: DisabledProps): DisabledProps;
static updateChildrenButtons(children: React.ReactNode, additionalProps?: AdditionalProps): React.ReactNode;
static updateButtons(node: any, additionalProps?: AdditionalProps): any;
static getUpdatedMessage(messageToUpdate: WebchatMessage): WebchatMessage;
}
export {};