import { IDeletedNotebook } from './types' ; import { ExtractActionTypes , ExtractActions } from '../common/actions' ; export const DeletedNotebookActions = { createDeletedNotebook : ( id , deletedNotebook ) => ( { type : 'deletedNotebook.create' as const , deletedNotebook , id , } ) , deleteDeletedNotebook : ( id ) => ( { type : 'deletedNotebook.delete' as const , id , } ) , restoreDeletedNotebook : ( id ) => ( { type : 'deletedNotebook.restore' as const , id , } ) , } ; export type DeletedNotebookActions = ExtractActions < typeof DeletedNotebookActions > ; export type DeletedNotebookActionTypes = ExtractActionTypes < typeof DeletedNotebookActions > ; export const DeletedNotebookActionTypes = ExtractActionTypes ( DeletedNotebookActions ) ;