mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-07 11:39:01 +08:00
12 lines
198 B
TypeScript
12 lines
198 B
TypeScript
import React from 'react'
|
|
|
|
import { DialogContext } from '@/contexts/dialog'
|
|
|
|
const useDialog = () => {
|
|
const dialog = React.useContext(DialogContext)
|
|
|
|
return dialog
|
|
}
|
|
|
|
export default useDialog
|