diff options
Diffstat (limited to 'src/state/models/shell.ts')
-rw-r--r-- | src/state/models/shell.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/state/models/shell.ts b/src/state/models/shell.ts index 3a5376421..7ef8137e8 100644 --- a/src/state/models/shell.ts +++ b/src/state/models/shell.ts @@ -34,11 +34,19 @@ export class SharePostModel { } } +export interface ComposePostModelOpts { + replyTo?: string + onPost?: () => void +} export class ComposePostModel { name = 'compose-post' + replyTo?: string + onPost?: () => void - constructor(public replyTo?: string) { + constructor(opts?: ComposePostModelOpts) { makeAutoObservable(this) + this.replyTo = opts?.replyTo + this.onPost = opts?.onPost } } |