修正 Shared Context 类型定义

This commit is contained in:
CrescentLeaf
2025-12-13 00:46:50 +08:00
parent de028556af
commit 28215fc1f8

View File

@@ -9,12 +9,15 @@ type Shared = {
}>
favouriteChats: Chat[]
setFavouriteChats: React.Dispatch<React.SetStateAction<Chat[]>>
setShowLoginDialog: React.Dispatch<React.SetStateAction<boolean>>
setShowRegisterDialog: React.Dispatch<React.SetStateAction<boolean>>
setShowAddFavourtieChatDialog: React.Dispatch<React.SetStateAction<boolean>>
setCurrentSelectedChatId: React.Dispatch<React.SetStateAction<string>>
myProfileCache?: UserMySelf
currentSelectedChatId: string
setCurrentSelectedChatId: React.Dispatch<React.SetStateAction<string>>
myProfileCache?: UserMySelf
}
const MainSharedContext = createContext({} as Shared)