mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-17 23:14:03 +01:00
Fixed the circular imports and things
This commit is contained in:
6
src-web/hooks/useDialog.ts
Normal file
6
src-web/hooks/useDialog.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { useContext } from 'react';
|
||||
import { DialogContext } from '../components/DialogContext';
|
||||
|
||||
export function useDialog() {
|
||||
return useContext(DialogContext).actions;
|
||||
}
|
||||
Reference in New Issue
Block a user