(params: {
chatId: string
resources: MothershipResource[]
})
| 394 | } |
| 395 | |
| 396 | async function reorderChatResources(params: { |
| 397 | chatId: string |
| 398 | resources: MothershipResource[] |
| 399 | }): Promise<{ resources: MothershipResource[] }> { |
| 400 | const data = await requestJson(reorderMothershipChatResourcesContract, { |
| 401 | body: { chatId: params.chatId, resources: params.resources }, |
| 402 | }) |
| 403 | return parseChatResourcesResponse(data) |
| 404 | } |
| 405 | |
| 406 | export function useReorderChatResources(chatId?: string) { |
| 407 | const queryClient = useQueryClient() |
nothing calls this directly
no test coverage detected