feat: support web ui

This commit is contained in:
GyDi
2022-08-06 21:56:54 +08:00
parent 0891b5e7b7
commit 5564c966a5
12 changed files with 361 additions and 52 deletions

View File

@@ -0,0 +1,14 @@
import { MutableRefObject, useRef } from "react";
interface Handler {
open: () => void;
close: () => void;
}
export type ModalHandler = MutableRefObject<Handler>;
const useModalHandler = (): ModalHandler => {
return useRef({ open: () => {}, close: () => {} });
};
export default useModalHandler;