@fntio/infra-client
Version:
Self-hosted AWS access portal: credential vending, target-account trust, and grant-driven private networking as CDK stacks and constructs.
2 lines (1 loc) • 340 B
JavaScript
import{R as d,pb as i,qb as o,rb as a}from"./chunk-FYA6QUPZ.js";function p(e,t=24,l={}){let n=d(t),g=l.rewindOn??e;a(()=>{g(),i(()=>n.set(t))});let r=o(()=>e().length),s=o(()=>e().slice(0,n())),m=o(()=>Math.min(n(),e().length)),w=o(()=>n()<e().length);return{items:s,shown:m,total:r,hasMore:w,loadMore:()=>n.update(M=>M+t)}}export{p as a};