UNPKG

@surveycake/rc

Version:

react component of surveycake

13 lines (12 loc) 421 B
import React, { FC } from 'react'; import * as enWording from './en'; import * as twWording from './tw'; interface WordingProviderProps { lang: 'tw' | 'en'; } export interface IWording extends FC<WordingProviderProps> { useWording: () => typeof twWording; } export declare const WordingContext: React.Context<typeof enWording>; declare const WordingProvider: IWording; export default WordingProvider;