// What a nav count shows. An incomplete count (some reads failed) is a floor, never an exact number, // and an incomplete zero is unknown rather than nothing. export const navCount = (count: number, incomplete: boolean): { text: string; label: string } | null => { if (incomplete) { return count > 0 ? { text: `${count}+`, label: `At least ${count} unread; some messages could not be checked` } : { text: '?', label: 'Some messages could not be checked' }; } return count > 0 ? { text: String(count), label: `${count} unread` } : null; };