bruno/packages/grafnode-run/src/pageComponents/Main/index.js

33 lines
764 B
JavaScript
Raw Normal View History

2021-12-03 20:37:38 +01:00
import React from 'react';
import {Navbar, Sidebar} from '@grafnode/components';
import actions from 'providers/Store/actions';
import { useStore } from 'providers/Store';
import StyledWrapper from './StyledWrapper';
export default function Main() {
const [state, dispatch] = useStore();
const {
collections,
activeRequestTabId
} = state;
console.log(actions);
return (
<div>
<Navbar />
<StyledWrapper>
<Sidebar
collections={collections}
actions={actions}
dispatch={dispatch}
activeRequestTabId={activeRequestTabId}
/>
<section className='mt-4 flex flex-grow flex-col'>
Request & Response Tabs
</section>
</StyledWrapper>
</div>
)
}