mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: more navbar buttons
This commit is contained in:
1 parent
60f0eb9a3c
commit
7eda4825ea
3 files changed
+41
-9
No files matched your search
@@ -1,10 +1,10 @@
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
function hasWideFormat() {
|
||||
return typeof window !== 'undefined' && window.innerWidth > 880;
|
||||
}
|
||||
export function useWideFormat(size = 880) {
|
||||
function hasWideFormat() {
|
||||
return typeof window !== 'undefined' && window.innerWidth > size;
|
||||
}
|
||||
|
||||
export function useWideFormat() {
|
||||
const [wideFormat, setWideFormat] = useState(hasWideFormat());
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in new issue
Block a user