This commit is contained in:
john 2025-08-10 19:57:33 +02:00
parent 52b5a490ac
commit ebc314f638
9 changed files with 226 additions and 33 deletions

View file

@ -1,5 +1,5 @@
import { useCallback, useState } from 'react'
import { Post, PostMedia, PostReaction } from './posts.ts'
import { Post, PostComment, PostMedia, PostReaction } from './posts.ts'
import { Temporal } from '@js-temporal/polyfill'
import { produce } from 'immer'
@ -10,6 +10,7 @@ export interface PostInfo {
createdAt: Temporal.Instant
media: PostMedia[]
possibleReactions: string[]
comments: PostComment[]
}
type ReactionMap = Record<string, PostReaction[]>