Typescript React How Implement Decoder And Encoder Presentation