@grandlinex/react-components
Version:
20 lines (19 loc) • 635 B
TypeScript
import React from 'react';
import { GLang } from './GLang';
declare const defaultGLang: GLang;
export type DecorationType = 'underline' | 'outline' | 'none';
declare class UIContextData {
portalRoot: HTMLElement;
translation: GLang;
tooltipDisabled: boolean;
decoration: DecorationType;
constructor(conf?: {
portalRoot?: HTMLElement;
lang?: GLang;
tooltipDisabled?: boolean;
decoration?: DecorationType;
});
}
declare const UIContext: React.Context<UIContextData>;
declare const useUIContext: () => UIContextData;
export { useUIContext, UIContext, UIContextData, defaultGLang };