Spaces:
Running
Running
components/chat/useChat.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { useLocalStorage } from "react-use";
|
|
| 3 |
import { useEffect } from "react";
|
| 4 |
import { v4 as uuidv4 } from "uuid";
|
| 5 |
|
| 6 |
-
import {
|
| 7 |
|
| 8 |
const MESSAGES_QUERY_KEY = (projectName: string) =>
|
| 9 |
["messages", projectName] as const;
|
|
|
|
| 3 |
import { useEffect } from "react";
|
| 4 |
import { v4 as uuidv4 } from "uuid";
|
| 5 |
|
| 6 |
+
import { Message } from "@/lib/type";
|
| 7 |
|
| 8 |
const MESSAGES_QUERY_KEY = (projectName: string) =>
|
| 9 |
["messages", projectName] as const;
|