mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-06 18:17:38 +08:00
Revert "feat: add message float components"
This reverts commit b0eef220a6.
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
export const useMessageFloat = () =>
|
||||
useState<{ open: boolean; path: string }>('message-float', () => ({
|
||||
open: false,
|
||||
path: '/message-box',
|
||||
}))
|
||||
export const openMessageFloat = (path: string) => {
|
||||
const state = useMessageFloat()
|
||||
state.value.open = true
|
||||
state.value.path = path
|
||||
}
|
||||
|
||||
export const closeMessageFloat = () => {
|
||||
const state = useMessageFloat()
|
||||
state.value.open = false
|
||||
}
|
||||
Reference in New Issue
Block a user