UNPKG

recoil-sync-next

Version:

recoil-sync stores for Next.js

14 lines (13 loc) 655 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RecoilURLSyncTransitNext = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const recoil_sync_1 = require("recoil-sync"); const useSyncURLNext_1 = require("./useSyncURLNext"); const RecoilURLSyncTransitNext = ({ children, ...options }) => { const { browserInterface, ...defaultOptions } = (0, useSyncURLNext_1.useSyncURLNext)(); return ((0, jsx_runtime_1.jsx)(recoil_sync_1.RecoilURLSyncTransit, { ...defaultOptions, ...options, browserInterface, children: children })); }; exports.RecoilURLSyncTransitNext = RecoilURLSyncTransitNext;