UNPKG

@roochnetwork/rooch-sdk-kit

Version:
26 lines (23 loc) 819 B
// src/components/fauct-modal/views/FaucetView.css.ts var progressBar = "FaucetView_progressBar__1ff62y03"; // src/components/ProgressProvider.tsx import { createContext, useCallback, useContext, useState } from "react"; import { jsx, jsxs } from "react/jsx-runtime"; var ProgressProviderContext = createContext(null); var useProgress = () => { const ctx = useContext(ProgressProviderContext); if (!ctx) { throw new Error("useSubscribeToError must be used within a GlobalProvider"); } return ctx; }; // src/components/ui/Progress.tsx import { jsx as jsx2 } from "react/jsx-runtime"; function Progress() { const { progress } = useProgress(); return /* @__PURE__ */ jsx2("div", { className: progressBar, style: { width: `${progress}%` } }); } export { Progress }; //# sourceMappingURL=Progress.js.map