import { ExtractActionTypes , ExtractActions } from '../common/actions' ; export const TrashBinActions = { moveNotebookToTrashBin : ( id ) => ( { type : 'trashBin.addNotebook' as const , id , } ) , moveFolderToTrashBin : ( id ) => ( { type : 'trashBin.addFolderContent' as const , id , } ) , permanentlyDeleteNotebook : ( id ) => ( { type : 'trashBin.deleteNotebook' as const , id , } ) , restoreDeletedNotebook : ( id , folderId ) => ( { type : 'trashBin.restoreNotebook' as const , folderId , id , } ) , } ; export type TrashBinActions = ExtractActions < typeof TrashBinActions > ; export type TrashBinActionTypes = ExtractActionTypes < typeof TrashBinActions > ; export const TrashBinActionTypes = ExtractActionTypes ( TrashBinActions ) ;