comments
This commit is contained in:
parent
52b5a490ac
commit
ebc314f638
9 changed files with 226 additions and 33 deletions
|
@ -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[]>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue