|
1 | 1 | import*asReactfrom'react' |
2 | 2 | import*asTfrom'typings' |
| 3 | +import{css,jsx}from'@emotion/core' |
3 | 4 |
|
4 | 5 | interfacePropsextendsT.MachineContext{ |
5 | 6 | state:string |
6 | 7 | children:React.ReactElement |
7 | 8 | } |
8 | 9 |
|
9 | 10 | constDebugger=({ state, children, env, position, progress, processes, tutorial}:Props)=>( |
10 | | -<divstyle={{backgroundColor:'#FFFF99',color:'black',padding:'.5rem'}}> |
| 11 | +<divcss={{backgroundColor:'#FFFF99',color:'black',padding:'.5rem'}}> |
11 | 12 | <h4>state:{state}</h4> |
12 | 13 | <p>MachineId:{env.machineId}</p> |
13 | 14 | <p>SessionId:{env.sessionId}</p> |
14 | 15 | <p>tutorial:{tutorial ?tutorial.id :'none'}</p> |
15 | | -<pstyle={{backgroundColor:'khaki',padding:'.5rem'}}>position:{JSON.stringify(position)}</p> |
16 | | -<pstyle={{backgroundColor:'moccasin',padding:'.5rem'}}>progress:{JSON.stringify(progress)}</p> |
17 | | -<pstyle={{backgroundColor:'beige',padding:'.5rem'}}>processes:{JSON.stringify(processes)}</p> |
| 16 | +<pcss={{backgroundColor:'khaki',padding:'.5rem'}}>position:{JSON.stringify(position)}</p> |
| 17 | +<pcss={{backgroundColor:'moccasin',padding:'.5rem'}}>progress:{JSON.stringify(progress)}</p> |
| 18 | +<pcss={{backgroundColor:'beige',padding:'.5rem'}}>processes:{JSON.stringify(processes)}</p> |
18 | 19 | {children} |
19 | 20 | </div> |
20 | 21 | ) |
|