stream-chat-react
Version:
React components to create chat conversations or livestream style chat
16 lines • 762 B
TypeScript
import React from 'react';
import type { PropsWithChildren } from 'react';
import type { TFunction } from 'i18next';
import type { TranslationLanguages } from 'stream-chat';
import type { TDateTimeParser } from '../i18n/types';
export type TranslationContextValue = {
t: TFunction;
tDateTimeParser: TDateTimeParser;
userLanguage: TranslationLanguages;
};
export declare const TranslationContext: React.Context<TranslationContextValue>;
export declare const TranslationProvider: ({ children, value, }: PropsWithChildren<{
value: TranslationContextValue;
}>) => import("react/jsx-runtime").JSX.Element;
export declare const useTranslationContext: (componentName?: string) => TranslationContextValue;
//# sourceMappingURL=TranslationContext.d.ts.map