From 90710579ba1c12060877f6ec2d26103f9c31058d Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Mon, 23 Oct 2023 17:11:33 +0700
Subject: Refactor and migrate register page

---
 src-migrate/modules/header/index.tsx | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 src-migrate/modules/header/index.tsx

(limited to 'src-migrate/modules/header/index.tsx')

diff --git a/src-migrate/modules/header/index.tsx b/src-migrate/modules/header/index.tsx
new file mode 100644
index 00000000..5c0e2933
--- /dev/null
+++ b/src-migrate/modules/header/index.tsx
@@ -0,0 +1,13 @@
+import React from 'react'
+import { useWindowSize } from "usehooks-ts"
+
+import HeaderDesktop from './components/HeaderDesktop'
+import HeaderMobile from './components/HeaderMobile'
+
+const Header = () => {
+  const { width } = useWindowSize()
+
+  return width > 768 ? <HeaderDesktop /> : <HeaderMobile />
+}
+
+export default Header
\ No newline at end of file
-- 
cgit v1.2.3

