2024-08-22 11:27:06 +08:00
|
|
|
import mitt from "mitt";
|
|
|
|
|
|
2026-05-29 10:39:12 +08:00
|
|
|
export const STOP_DETECTION_TIMER_EVENT = "stopDetectionTimer";
|
|
|
|
|
|
|
|
|
|
type MittBusEvents = {
|
|
|
|
|
openThemeDrawer: undefined;
|
|
|
|
|
[STOP_DETECTION_TIMER_EVENT]: undefined;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const mittBus = mitt<MittBusEvents>();
|
2024-08-22 11:27:06 +08:00
|
|
|
export default mittBus;
|