mirror of
https://github.com/LifeArchiveProject/WeChatDataAnalysis.git
synced 2026-06-18 15:54:08 +08:00
18 lines
277 B
JavaScript
18 lines
277 B
JavaScript
export const useSettingsDialog = () => {
|
|
const open = useState('settings-dialog-open', () => false)
|
|
|
|
const openDialog = () => {
|
|
open.value = true
|
|
}
|
|
|
|
const closeDialog = () => {
|
|
open.value = false
|
|
}
|
|
|
|
return {
|
|
open,
|
|
openDialog,
|
|
closeDialog,
|
|
}
|
|
}
|