14 lines
529 B
TypeScript
14 lines
529 B
TypeScript
import { atom } from 'jotai';
|
|
import type { ProxyState } from '../plugins/proxy';
|
|
|
|
// Non-secret UI mirror of the native proxy state. The password is NEVER
|
|
// stored here (or anywhere in JS / localStorage) — only the native
|
|
// Tink-encrypted store holds it. This atom is in-memory only and is
|
|
// re-hydrated from the native plugin on mount (see hooks/useProxy.ts).
|
|
export const proxyStateAtom = atom<ProxyState>({
|
|
configured: false,
|
|
enabled: false,
|
|
status: 'off',
|
|
supported: false,
|
|
reverseBypassSupported: false,
|
|
});
|