import React, { useMemo } from 'react';
import { locales } from '@pisell/utils';
var useCreateBookingPageHeader = function useCreateBookingPageHeader(state) {
  var createHeader = useMemo(function () {
    if (state.hideCreateText) {
      return null;
    }
    return state.isBookingCreatePage && !state.bookingId && /*#__PURE__*/React.createElement("div", {
      className: "booking-info-create-new"
    }, locales.getText('pisell2.booking.info.text.create-new'));
  }, [state.isBookingCreatePage, state.bookingId]);
  var isBookingCreatePage = useMemo(function () {
    return state.isBookingCreatePage;
  }, [state.isBookingCreatePage]);
  var isBookingCreatePageCreateMode = useMemo(function () {
    return state.isBookingCreatePage && !state.bookingId;
  }, [state.isBookingCreatePage, state.bookingId]);
  return {
    createHeader: createHeader,
    isBookingCreatePage: isBookingCreatePage,
    isBookingCreatePageCreateMode: isBookingCreatePageCreateMode
  };
};
export default useCreateBookingPageHeader;