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,
18 * Manages the state of a user
20 export class UserState extends BasePropertiesState<UserStateValues, UserEvent> {