Show parent post in composer when replying (close #3)

This commit is contained in:
Paul Frazee 2022-11-23 13:28:29 -06:00
parent 0840c3f8f7
commit fbcf0d79d1
5 changed files with 66 additions and 5 deletions

View file

@ -1,6 +1,5 @@
import {makeAutoObservable} from 'mobx'
import {ProfileViewModel} from './profile-view'
import * as Post from '../../third-party/api/src/client/types/app/bsky/feed/post'
export class ConfirmModel {
name = 'confirm'
@ -52,8 +51,17 @@ export class ServerInputModel {
}
}
export interface ComposerOptsPostRef {
uri: string
cid: string
text: string
author: {
handle: string
displayName?: string
}
}
export interface ComposerOpts {
replyTo?: Post.PostRef
replyTo?: ComposerOptsPostRef
onPost?: () => void
}