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

17 lines
429 B
TypeScript
Raw Normal View History

import { atom } from 'jotai';
export type SettingsRequestPage =
| 'general'
| 'account'
| 'notifications'
| 'devices'
| 'desktop'
| 'appearance';
/**
* 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);