Total Complexity | 1 |
Total Lines | 13 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | import React from 'react'; |
||
4 | |||
5 | export default class Presenter { |
||
6 | moduleState: IObserver<typeof React.Component | null>; |
||
7 | |||
8 | constructor(moduleState: IObserver<typeof React.Component | null>) { |
||
9 | 3 | this.moduleState = moduleState; |
|
10 | } |
||
11 | |||
12 | present() { |
||
13 | 1 | const model: Model = new Model(); |
|
14 | 1 | model.module = this.moduleState.value; |
|
15 | |||
16 | 1 | return model; |
|
17 | } |
||
18 | } |