UNPKG

@lucianojd/recoil-sync-next

Version:

recoil-sync stores for Next.js

16 lines (15 loc) 703 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RecoilURLSyncJSONNext = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const recoil_sync_1 = require("recoil-sync"); const useSyncURLNext_1 = require("./useSyncURLNext"); const RecoilURLSyncJSONNext = ({ children, shallow = true, ...options }) => { const { browserInterface, ...defaultOptions } = (0, useSyncURLNext_1.useSyncURLNext)({ shallow }); return ((0, jsx_runtime_1.jsx)(recoil_sync_1.RecoilURLSyncJSON, { ...{ ...defaultOptions, ...options, browserInterface, }, children: children })); }; exports.RecoilURLSyncJSONNext = RecoilURLSyncJSONNext;