MCPcopy
hub / github.com/yinxin630/fiora / ChatBackButton

Function ChatBackButton

packages/app/src/pages/Chat/ChatBackButton.tsx:5–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { useStore } from '../../hooks/useStore';
4
5function ChatBackButton() {
6 const store = useStore();
7 const unread = store.linkmans.reduce((result, linkman) => {
8 result += linkman.unread;
9 return result;
10 }, 0);
11
12 return <BackButton text={unread.toString()} />;
13}
14
15export default ChatBackButton;

Callers

nothing calls this directly

Calls 1

useStoreFunction · 0.90

Tested by

no test coverage detected