import { TimeMode } from '@crux-kit/types'; export const detectUserTimeMode = (): TimeMode => { return new Intl.DateTimeFormat(undefined, { hour: 'numeric', }).resolvedOptions().hour12 ? '12h' : '24h'; };