2026-09-19 13:23:25 -04:00
|
|
|
import { atom } from 'jotai';
|
|
|
|
|
|
2026-10-25 02:07:23 -04:00
|
|
|
export type SettingsRequestPage =
|
|
|
|
|
| 'general'
|
|
|
|
|
| 'account'
|
|
|
|
|
| 'notifications'
|
|
|
|
|
| 'devices'
|
|
|
|
|
| 'desktop'
|
|
|
|
|
| 'appearance';
|
2026-09-19 13:23:25 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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);
|