feat: agenda polish, SLA sync, filters

This commit is contained in:
Esdras Renan 2025-11-08 02:34:43 -03:00
parent 7fb6c65d9a
commit 6ab8a6ce89
40 changed files with 2771 additions and 154 deletions

View file

@ -0,0 +1,19 @@
import { useEffect, useState } from "react"
export function useLocalTimeZone(fallback?: string) {
const [timeZone, setTimeZone] = useState<string | undefined>(fallback)
useEffect(() => {
if (typeof window === "undefined") return
try {
const resolved = Intl.DateTimeFormat().resolvedOptions().timeZone
if (resolved) {
setTimeZone(resolved)
}
} catch {
/* ignore */
}
}, [])
return timeZone
}