import Api from "../api" ; import callHook from "./callHook" ; param { string } name param { Output } output param { Page } page return { Promise < Page > } function callPageHook ( name , output , page ) { return callHook ( name , ( out ) => { return Api . encodePage ( out , page ) ; } , ( out , result ) => { return Api . decodePage ( out , page , result ) ; } , output ) ; } export default callPageHook ;