const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _pisell_utils = require("@pisell/utils");
//#region src/components/booking/hooks/useCreateBookingPageHeader.tsx
const useCreateBookingPageHeader = (state) => {
	return {
		createHeader: (0, react.useMemo)(() => {
			if (state.hideCreateText) return null;
			return state.isBookingCreatePage && !state.bookingId && /* @__PURE__ */ react.default.createElement("div", { className: "booking-info-create-new" }, _pisell_utils.locales.getText("pisell2.booking.info.text.create-new"));
		}, [state.isBookingCreatePage, state.bookingId]),
		isBookingCreatePage: (0, react.useMemo)(() => {
			return state.isBookingCreatePage;
		}, [state.isBookingCreatePage]),
		isBookingCreatePageCreateMode: (0, react.useMemo)(() => {
			return state.isBookingCreatePage && !state.bookingId;
		}, [state.isBookingCreatePage, state.bookingId])
	};
};
//#endregion
exports.default = useCreateBookingPageHeader;
