This commit is contained in:
tmshv authored and GitHub committed 2026-02-08 15:13:03 +07:00
1 parent dd9058b798
commit 9f5f721bd0
5 files changed
+159 -72

No files matched your search

+10 -11
View File
@@ -1,4 +1,4 @@
import { useMobile } from "src/hooks/useMobile"
import s from "./nav.module.css"
import { DesktopNavigation } from "./DesktopNavigation"
import { MobileNavigation } from "./MobileNavigation"
@@ -6,16 +6,15 @@ export type NavigationProps = {
style?: React.CSSProperties
}
export const Navigation: React.FC<NavigationProps> = ({ style }) => {
const mobile = useMobile()
if (mobile) {
return (
<MobileNavigation style={style} />
)
}
export function Navigation({ style }: NavigationProps) {
return (
<DesktopNavigation style={style} />
<>
<div className={s.desktop}>
<DesktopNavigation style={style} />
</div>
<div className={s.mobile}>
<MobileNavigation style={style} />
</div>
</>
)
}