{"version":3,"file":"UnreadCounter.cjs","names":[],"sources":["../../../src/components/ActivityMarker/UnreadCounter.tsx"],"sourcesContent":["/*\n * Copyright 2025 New Vector Ltd\n *\n * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial\n * Please see LICENSE files in the repository root for full details.\n */\n\nimport React, { type HTMLProps } from \"react\";\nimport styles from \"./UnreadCounter.module.css\";\n\ninterface UnreadCounterProps extends HTMLProps<HTMLDivElement> {\n  /**\n   * The number to display.\n   * If `null`, the counter will be empty.\n   */\n  count: string | number | null;\n}\n\nexport function UnreadCounter({ count, ...props }: UnreadCounterProps) {\n  if (count === null)\n    return <div {...props} className={styles[\"unread-counter\"]} />;\n\n  return (\n    <span {...props} className={styles[\"unread-counter\"]}>\n      {count}\n    </span>\n  );\n}\n"],"mappings":";;;;;;AAkBA,SAAgB,cAAc,EAAE,OAAO,GAAG,SAA6B;AACrE,KAAI,UAAU,KACZ,QAAO,iBAAA,GAAA,kBAAA,KAAC,OAAD;EAAK,GAAI;EAAO,WAAW,6BAAA,QAAO;EAAqB,CAAA;AAEhE,QACE,iBAAA,GAAA,kBAAA,KAAC,QAAD;EAAM,GAAI;EAAO,WAAW,6BAAA,QAAO;YAChC;EACI,CAAA"}