UNPKG

@mrii/react-table-builder

Version:
8 lines (7 loc) 479 B
/// <reference types="react" /> import type { TranslationContext } from './model'; declare const useTranslation: <TStateSlice>(selector?: (state: TranslationContext) => TStateSlice) => TStateSlice; export { useTranslation }; export declare const useGetLabel: (str: string) => string | undefined; export type TranslationProviderProps = Pick<TranslationContext, 'translation'>; export declare const TranslationProvider: React.FC<React.PropsWithChildren<TranslationProviderProps>>;