import { InputType , JoinInput , PostInput } from './types' ; function join ( name ) { return { type : InputType . Join , payload : { name } } ; } function post ( body ) { return { type : InputType . Post , payload : { body } } ; } const apiProto = { join , post , } ; export default apiProto ;