UNPKG

@shopgate/engage

Version:
25 lines (24 loc) 749 B
import React, { useRef } from 'react'; import { useRoute } from '@shopgate/engage/core'; import GuestRegistrationProvider from "../../providers/GuestRegistrationProvider"; import GuestCheckoutContent from "./GuestRegistrationContent"; /** * The GuestRegistration component. * @returns {JSX} */ import { jsx as _jsx } from "react/jsx-runtime"; const GuestRegistration = () => { const formContainerRef = useRef(null); const { id } = useRoute(); return /*#__PURE__*/_jsx(GuestRegistrationProvider, { formContainerRef: formContainerRef, routeId: id, children: /*#__PURE__*/_jsx("div", { ref: formContainerRef, children: /*#__PURE__*/_jsx(GuestCheckoutContent, {}) }) }); }; export default GuestRegistration;