function setTitleBadge
setTitleBadge(count: number): void

Prefixes the tab's title with the unread count, as in "(3) Chat ยท gerbeur", or removes the prefix at 0. Past 99 it shows "99+".

Parameters

count: number

Return Type

void

Usage

import { setTitleBadge } from "src/hooks/shared/useDocumentTitle.ts";