mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-11 23:40:24 +00: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
|