"use strict";

exports.__esModule = true;
exports.useSidePanelProps = useSidePanelProps;
var _react = require("@wix/bex-core/react");
function useSidePanelProps({
  onClose
}) {
  const {
    isPanelLayout
  } = (0, _react.useWixPatternsContainer)();
  if (isPanelLayout) {
    return {
      onBackButtonClick: onClose
    };
  }
  return {
    onCloseButtonClick: onClose
  };
}
//# sourceMappingURL=useSidePanelProps.js.map