Initial TicketTracker release

This commit is contained in:
2026-08-05 10:55:30 +02:00
commit 125b1d22ff
128 changed files with 26208 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import * as React from "react";
const LG_BREAKPOINT = 1024;
export function useIsLg() {
const [isLg, setIsLg] = React.useState<boolean | undefined>(undefined);
React.useEffect(() => {
const mql = window.matchMedia(`(min-width: ${LG_BREAKPOINT}px)`);
const onChange = () => {
setIsLg(window.innerWidth >= LG_BREAKPOINT);
};
mql.addEventListener("change", onChange);
setIsLg(window.innerWidth >= LG_BREAKPOINT);
return () => mql.removeEventListener("change", onChange);
}, []);
return !!isLg;
}