feat: refactor chat sharing implementation
This commit is contained in:
parent
8cc3fea048
commit
137bdadaf9
12 changed files with 262 additions and 124 deletions
10
lib/types.ts
10
lib/types.ts
|
|
@ -7,15 +7,7 @@ export interface Chat extends Record<string, any> {
|
|||
userId: string
|
||||
path: string
|
||||
messages: Message[]
|
||||
}
|
||||
|
||||
export interface Share {
|
||||
id: string
|
||||
title: string
|
||||
createdAt: number
|
||||
userId: string
|
||||
path: string
|
||||
chat: Chat
|
||||
sharePath?: string
|
||||
}
|
||||
|
||||
export type ServerActionResult<Result> = Promise<Result | Error>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue