@shopgate/engage
Version:
Shopgate's ENGAGE library.
25 lines (24 loc) • 758 B
JavaScript
import * as React from 'react';
import PropTypes from 'prop-types';
import { FulfillmentProvider, openSheet } from "../../providers";
import { FulfillmentSheetContent } from "./FulfillmentSheetContent";
/**
* Renders the fulfillment sheet.
* @param {Object} props The component props.
* @param {boolean} props.allowClose Whether the sheet can be closed via a button
* @returns {JSX.Element}
*/
import { jsx as _jsx } from "react/jsx-runtime";
export const FulfillmentSheet = ({
allowClose = true,
...props
}) => /*#__PURE__*/_jsx(FulfillmentProvider, {
...props,
children: /*#__PURE__*/_jsx(FulfillmentSheetContent, {
allowClose: allowClose
})
});
FulfillmentSheet.defaultProps = {
allowClose: true
};
FulfillmentSheet.open = openSheet;