()
| 3 | import { useStore } from '../../hooks/useStore'; |
| 4 | |
| 5 | function 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 | |
| 15 | export default ChatBackButton; |
nothing calls this directly
no test coverage detected