UNPKG

@alessiofrittoli/next-api

Version:
1 lines 344 B
'use strict';var jsxRuntime=require('react/jsx-runtime');var n=(e,t)=>typeof t>"u";function d(e,t=false){return async(a,r)=>{let s=await a.params,P=t?await a.searchParams:a.searchParams;return n(e,r)?jsxRuntime.jsx(e,{...a,params:s,searchParams:P}):e({...a,params:s,searchParams:P},await r)}}exports.isPageReactFC=n;exports.withAwaitedParams=d;