export type { RawDate, timeInS } from './datetime' export { isRawDate, formatDate, defaultFormat, periodToString } from './datetime' export const headerHeight = 64 export const mainFrameSize = () => ({ width: window.innerWidth, height: window.innerHeight - headerHeight }) export const arrayOrDefault = (arr?: unknown, def: T[] = []): T[] => Array.isArray(arr) ? arr : def