Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / docs-core / lib / State / UserState.ts
bloba3e27841f7b12527a861552c451a6d1a9bc0425e
1 import { BasePropertiesState } from '@proton/docs-shared'
3 export type UserEvent = { name: string; payload: unknown }
5 export interface UserStateValues {
6   userAccountEmailDocTitleEnabled: boolean
7   userAccountEmailNotificationsEnabled: boolean
8   currentDocumentEmailDocTitleEnabled: boolean
11 const DefaultValues: UserStateValues = {
12   userAccountEmailDocTitleEnabled: false,
13   userAccountEmailNotificationsEnabled: false,
14   currentDocumentEmailDocTitleEnabled: false,
17 /**
18  * Manages the state of a user
19  */
20 export class UserState extends BasePropertiesState<UserStateValues, UserEvent> {
21   constructor() {
22     super(DefaultValues)
23   }