UNPKG

react18-loaders

Version:

A comprehensive library that unleashes the full potential of React 18 server components, providing customizable loading animation components alongside a fullscreen loader container. Designed to seamlessly integrate with React and Next.js.

2 lines (1 loc) 622 B
"use strict";var n=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var R=Object.prototype.hasOwnProperty;var d=(r,o)=>{for(var t in o)n(r,t,{get:o[t],enumerable:!0})},f=(r,o,t,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of p(o))!R.call(r,e)&&e!==t&&n(r,e,{get:()=>o[e],enumerable:!(s=m(o,e))||s.enumerable});return r};var u=r=>f(n({},"__esModule",{value:!0}),r);var L={};d(L,{useLoader:()=>E});module.exports=u(L);var i=require("r18gs");var a="r18-loaders";function E(){let[r,o]=(0,i.useRGS)(a);return{loading:r,setLoading:o}}0&&(module.exports={useLoader});