import { getBookingTicketKey } from "../../utils/index.js";
import { usePisellOS } from "../../../../hooks/useEngineContext.js";
import { useOsKey } from "../../context/OsKeyContext.js";
//#region src/components/ticketBooking/hooks/pisellos/bookingTicket.ts
/**
* useBookingTicket Hook
* 获取当前 TicketBooking 实例对应的 BookingTicket 模块
* 通过 osKey 区分不同页面的模块实例
*/
const useBookingTicket = () => {
	const pisellOS = usePisellOS();
	const moduleKey = getBookingTicketKey(useOsKey() || "ticket");
	return pisellOS.getModule(moduleKey);
};
//#endregion
export { useBookingTicket };
