geoiq-frontend-ui-kit
Version:
This project is a UI kit for GeoIQ's frontend. It's built with React, TypeScript, and Vite.
42 lines (41 loc) • 994 B
JavaScript
import s, { useState as d } from "react";
import { Alert as f } from "./index.es20.js";
import { RequestCreditsDialog as m } from "./index.es2.js";
const q = ({
onRequestCredits: o,
onProceedToPayment: r,
buyCreditsOptions: a,
minimumCreditsToBuy: l
}) => {
const [i, e] = d(!1), u = (t, n) => {
o(t, n), e(!1);
}, c = (t, n) => {
r?.(t, n), e(!1);
};
return /* @__PURE__ */ s.createElement("div", null, /* @__PURE__ */ s.createElement(
f,
{
className: "select-none",
buttonLabel: "Request for Credits",
onButtonClick: () => e(!0),
shortContent: !0,
showButton: !0,
title: "Insufficient Credits available!",
variant: "warning"
}
), /* @__PURE__ */ s.createElement(
m,
{
open: i,
onClose: () => e(!1),
onRequestCredits: u,
onProceedToPayment: c,
buyCreditsOptions: a,
minimumCreditsToBuy: l
}
));
};
export {
q as default
};
//# sourceMappingURL=index.es3.js.map