Files
cinny/src/app/state/settingsRequest.ts
T

11 lines
388 B
TypeScript
Raw Normal View History

import { atom } from 'jotai';
export type SettingsRequestPage = 'general' | 'account' | 'notifications' | 'devices';
/**
* Ask the sidebar to open User Settings at a page from anywhere in the app
* (e.g. an undecryptable message's "Set up key backup" button, #159).
* SettingsTab consumes and clears it.
*/
export const settingsRequestAtom = atom<SettingsRequestPage | null>(null);