@alessiofrittoli/next-api
Version:
Next.js API utility library
1 lines • 344 B
JavaScript
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;
;