UNPKG

@suiware/kit

Version:

Opinionated React components and hooks for building Sui dApps.

29 lines (27 loc) 723 B
import { useFaucet_default } from './chunk-543KNPTE.mjs'; import { Button } from '@radix-ui/themes'; import { HandCoinsIcon } from 'lucide-react'; import { jsxs, jsx } from 'react/jsx-runtime'; var Faucet = (props) => { const { onError, onSuccess } = props; const { fund } = useFaucet_default({ onError, onSuccess }); return /* @__PURE__ */ jsxs( Button, { variant: "surface", className: "sk-faucet-button", onClick: () => fund(), children: [ /* @__PURE__ */ jsx(HandCoinsIcon, {}), "Faucet" ] } ); }; var Faucet_default = Faucet; export { Faucet_default }; //# sourceMappingURL=chunk-NKYSRY6N.mjs.map //# sourceMappingURL=chunk-NKYSRY6N.mjs.map