summaryrefslogtreecommitdiff
path: root/src-migrate/modules/header/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src-migrate/modules/header/index.tsx')
-rw-r--r--src-migrate/modules/header/index.tsx13
1 files changed, 13 insertions, 0 deletions
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