@geist-ui/react
Version:
Modern and minimalist React UI library.
12 lines (11 loc) • 533 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 GeistUIContextParams {
toasts: Array<ToastWithID>;
toastHovering: boolean;
updateToasts: UpdateToastsFunction<ToastWithID>;
updateToastHoverStatus: (fn: () => boolean) => void;
}
export declare const GeistUIContent: React.Context<GeistUIContextParams>;
export declare const useGeistUIContext: () => GeistUIContextParams;