@lonelyplanet/dotcom-core
Version:
This package is meant to house some of our more common UI and shared libs across dotcom applications.
18 lines (17 loc) • 492 B
TypeScript
import * as React from "react";
export declare type ToastType = "error" | "info" | "success" | "warning";
export interface IToastState {
message: string;
url: string;
buttonLabel: string;
type: ToastType;
duration: number;
animationDuration: number;
visible: boolean;
title: string;
}
export default class GlobalToastFromCookie extends React.Component<{}, IToastState> {
constructor(props: any);
componentDidMount(): void;
render(): JSX.Element;
}