export type State = { currentUserId: string, } export type Plugin<T = {}> = (config: T) => (state: State) => void