@confi/conflux-react-ui-test-package
Version:
Modern and minimalist React UI library.
12 lines (11 loc) • 509 B
TypeScript
import React from 'react';
import { ToastWithID } from '../use-toasts/toast-container';
export declare type UpdateToastsFunction<T> = (fn: (toasts: Array<T>) => Array<T>) => any;
export interface ZeitUiContextParams {
toasts: Array<ToastWithID>;
toastHovering: boolean;
updateToasts: UpdateToastsFunction<ToastWithID>;
updateToastHoverStatus: Function;
}
export declare const ZEITUIContent: React.Context<ZeitUiContextParams>;
export declare const useZEITUIContext: () => ZeitUiContextParams;