import { ContentRef } from "@nteract/core" ; import * as actionTypes from "./actionTypes" ; import { DesktopNotebookClosingState } from "./state" ; export function closeNotebook ( payload ) { return { type : actionTypes . CLOSE_NOTEBOOK , payload } ; } export function closeNotebookProgress ( payload ) { return { type : actionTypes . CLOSE_NOTEBOOK_PROGRESS , payload } ; } export type Actions = { type : string ; payload ? : any ; error ? : boolean ; } | actionTypes . CloseNotebookProgress | actionTypes . CloseNotebook ;