forked from cerebral/overmind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.tsx
More file actions
24 lines (21 loc) · 706 Bytes
/
index.tsx
File metadata and controls
24 lines (21 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { createElement, FunctionComponent, Fragment, useState } from 'react'
import { useOvermind } from '../../overmind'
import * as styles from './styles'
import { colors } from '../../theme'
const RuntimeConfig: FunctionComponent = () => {
const { state, actions } = useOvermind()
return (
<div className={styles.wrapper}>
<div
className={styles.overlay}
onClick={() => actions.toggleRuntimeConfig()}
/>
<div className={styles.contentWrapper}>
<strong>{state.currentApp.connectionState}</strong>
<span style={{ margin: '0 5px' }}>on port</span>
<strong>{state.port}</strong>
</div>
</div>
)
}
export default RuntimeConfig