import { AppState } from "@nteract/core" ; import * as Immutable from "immutable" ; export type DesktopNotebookClosingState = "Not Started" | "Started" | "Ready to Close" ; export const DESKTOP_NOTEBOOK_CLOSING_NOT_STARTED = "Not Started" ; export const DESKTOP_NOTEBOOK_CLOSING_STARTED = "Started" ; export const DESKTOP_NOTEBOOK_CLOSING_READY_TO_CLOSE = "Ready to Close" ; export interface DesktopNotebookProps { closingState : DesktopNotebookClosingState ; } export type DesktopNotebookRecord = Immutable . RecordOf < DesktopNotebookProps > ; export const makeDesktopNotebookRecord = Immutable . Record < DesktopNotebookProps > ( { closingState : DESKTOP_NOTEBOOK_CLOSING_NOT_STARTED } ) ; export type DesktopNotebookAppState = AppState & { desktopNotebook : DesktopNotebookRecord ; } ;