export function defaultPageSizeByHeight(height?: number): number {
// SSR / safety: avoid accessing window if not present
const h = typeof window !== 'undefined' ? height ?? window.innerHeight : height ?? 800
if (h < 730) return 10
if (h < 1100) return 20
if (h < 1700) return 50
return 100
}