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-06-29 23:59:50 +00:00
|
|
|
import { State, useStoreState } from 'easy-peasy';
|
|
|
|
import { ApplicationState } from '@/state/types';
|
2019-06-29 05:17:29 +00:00
|
|
|
|
2019-06-29 23:59:50 +00:00
|
|
|
export default () => {
|
|
|
|
const status = useStoreState((state: State<ApplicationState>) => state.server.status);
|
|
|
|
|
|
|
|
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
|
|
|
);
|
|
|
|
};
|