Bluesky app fork with some witchin' additions 馃挮 witchsky.app
bluesky fork client
at main 16 lines 502 B view raw
1import {createContext} from 'react' 2 3import {type TranslationFunctionParams, type TranslationState} from './types' 4 5export const Context = createContext<{ 6 translationState: Record<string, TranslationState> 7 translate: ( 8 parameters: TranslationFunctionParams & { 9 key: string 10 forceGoogleTranslate: boolean 11 }, 12 ) => Promise<void> 13 clearTranslation: (key: string) => void 14 acquireTranslation: (key: string) => () => void 15} | null>(null) 16Context.displayName = 'TranslationContext'