UNPKG

@guestbell/react-page-plugins

Version:

Plugins we use in GuestBell for working with amazing react-page package

32 lines (31 loc) 1.08 kB
import * as React from 'react'; import { ButtonProps } from 'guestbell-forms/build/components/button'; export interface ErrorBoundaryInlineState { error: Error | null | undefined; } export interface ErrorBoundaryInlineProps<StateT> { title?: string; body?: string; buttonText?: string; buttonProps?: ButtonProps; onChange: (state: StateT) => void; state: StateT; createInitialState: () => StateT; hideButton?: boolean; children?: React.ReactNode; } declare class ErrorBoundaryInline<StateT> extends React.Component<ErrorBoundaryInlineProps<StateT>, ErrorBoundaryInlineState> { static defaultProps: { title: string; body: string; buttonText: string; }; constructor(props: ErrorBoundaryInlineProps<StateT>); static getDerivedStateFromError(error: Error): { error: Error; }; componentDidCatch(error: Error | null, info: object): void; render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element; private onClick; } export default ErrorBoundaryInline;