-
-
-
{formatCount(replyCount)}
-
-
-
-
{formatCount(stats.repostCount)}
-
-
-
-
{formatCount(stats.reactionCount)}
-
-
-
- )
-}
-
-function formatCount(count: number) {
- return count >= 100 ? '99+' : count
-}
diff --git a/src/renderer/src/components/Note/index.tsx b/src/renderer/src/components/Note/index.tsx
index dfeaed1b..ff455aee 100644
--- a/src/renderer/src/components/Note/index.tsx
+++ b/src/renderer/src/components/Note/index.tsx
@@ -3,20 +3,22 @@ import { Event } from 'nostr-tools'
import Content from '../Content'
import UserAvatar from '../UserAvatar'
import Username from '../Username'
-import NoteStats from './NoteStats'
+import NoteStats from '../NoteStats'
export default function Note({
event,
parentEvent,
size = 'normal',
className,
- displayStats = false
+ hideStats = false,
+ fetchNoteStats = false
}: {
event: Event
parentEvent?: Event
size?: 'normal' | 'small'
className?: string
- displayStats?: boolean
+ hideStats?: boolean
+ fetchNoteStats?: boolean
}) {
return (