2019-06-29 05:17:29 +00:00
|
|
|
import React from 'react';
|
2019-06-29 23:14:32 +00:00
|
|
|
import Console from '@/components/server/Console';
|
2019-07-10 04:25:57 +00:00
|
|
|
import { ServerContext } from '@/state/server';
|
2019-06-29 05:17:29 +00:00
|
|
|
|
2019-06-29 23:59:50 +00:00
|
|
|
export default () => {
|
2019-07-10 04:25:57 +00:00
|
|
|
const status = ServerContext.useStoreState(state => state.status.value);
|
2019-06-29 23:59:50 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<div className={'my-10 flex'}>
|
|
|
|
<div className={'mx-4 w-3/4 mr-4'}>
|
|
|
|
<Console/>
|
|
|
|
</div>
|
|
|
|
<div className={'flex-1 ml-4'}>
|
|
|
|
<p>Current status: {status}</p>
|
|
|
|
</div>
|
2019-06-29 23:14:32 +00:00
|
|
|
</div>
|
2019-06-29 23:59:50 +00:00
|
|
|
);
|
|
|
|
};
|