import { atom } from 'jotai';

export enum RoomSettingsPage {
  GeneralPage,
  MembersPage,
  PermissionsPage,
  EmojisStickersPage,
  SoundboardPage,
  DeveloperToolsPage,
  ExportPage,
  ActivityLogPage,
  ServerACLPage,
  InsightsPage,
  PolicyListsPage,
}

export type RoomSettingsState = {
  page?: RoomSettingsPage;
  roomId: string;
  spaceId?: string;
};

export const roomSettingsAtom = atom<RoomSettingsState | undefined>(undefined);
