mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 13:53:44 +08:00
15 lines
306 B
TypeScript
15 lines
306 B
TypeScript
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;
|