recoil-sync-next
Version:
recoil-sync stores for Next.js
10 lines (9 loc) • 418 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { RecoilURLSyncJSON } from 'recoil-sync';
import { useSyncURLNext } from './useSyncURLNext';
export const RecoilURLSyncJSONNext = ({ children, ...options }) => {
const { browserInterface, ...defaultOptions } = useSyncURLNext();
return (_jsx(RecoilURLSyncJSON, { ...defaultOptions,
...options,
browserInterface, children: children }));
};