Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

backgroundThread.ts

10 lines404 Bytes

1import { createContext } from "react";
2​
3/**
4 * True for a thread kept mounted under Settings or Usage, or shown as a side chat in its
5 * parent's panel; its global shortcuts and listeners stand down.
6 */
7export const BackgroundThreadContext = createContext(false);
8​
9/** True only for a thread kept mounted out of sight under Settings or Usage. */
10export const HiddenThreadContext = createContext(false);