(params: {
chatId: string
resource: MothershipResource
})
| 348 | } |
| 349 | |
| 350 | async function addChatResource(params: { |
| 351 | chatId: string |
| 352 | resource: MothershipResource |
| 353 | }): Promise<{ resources: MothershipResource[] }> { |
| 354 | const data = await requestJson(addMothershipChatResourceContract, { |
| 355 | body: { chatId: params.chatId, resource: params.resource }, |
| 356 | }) |
| 357 | return parseChatResourcesResponse(data) |
| 358 | } |
| 359 | |
| 360 | export function useAddChatResource(chatId?: string) { |
| 361 | const queryClient = useQueryClient() |
nothing calls this directly
no test coverage detected