From cb4c78bd4ea3c79c5cacbfd474ecddcf8db658ef Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Sat, 6 Jun 2020 22:05:34 +0300
Subject: feat: implement basic header

---
 src/index.tsx | 24 +++++++++++++++++++-----
 1 file changed, 19 insertions(+), 5 deletions(-)

(limited to 'src/index.tsx')

diff --git a/src/index.tsx b/src/index.tsx
index fa9a15a..e858a17 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -1,7 +1,21 @@
-import React from 'react';
+import React, { useState } from 'react';
 import ReactDOM from 'react-dom';
+import { CssBaseline } from '@material-ui/core';
+import 'typeface-roboto';
+
+import Header from './Header/Header';
+
+const App: React.FC = () => {
+  const [page, setPage] = useState('feed');
+
+  return (
+    <>
+      <CssBaseline />
+      <Header page={page} setPage={setPage} />
+      <h1> Hello, world! </h1>
+    </>
+  );
+};
+
+ReactDOM.render(<App />, document.getElementById('root'));
 
-ReactDOM.render(
-  <h1> Hello, world! </h1>,
-  document.getElementById('root')
-);
-- 
cgit v1.2.3

