(count?: number)
| 111 | }; |
| 112 | |
| 113 | const formatWordCount = (count?: number) => { |
| 114 | if (!count) return null; |
| 115 | if (count >= 10000) return `${(count / 10000).toFixed(1)}万字`; |
| 116 | return `${count}字`; |
| 117 | }; |
| 118 | |
| 119 | const formatTime = (ts?: number) => { |
| 120 | if (!ts) return ""; |
no outgoing calls
no test coverage detected