UNPKG

next-auth-pubkey

Version:

A light-weight Lightning and Nostr auth provider for your Next.js app that's entirely self-hosted and plugs seamlessly into the next-auth framework.

10 lines (9 loc) 661 B
import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime"; import { Title } from "./Title.js"; import { QrCode } from "./QrCode.js"; import { CopyCode } from "./CopyCode.js"; import { LightningButton } from "./LightningButton.js"; import { hardConfig } from "../config/hard.js"; export function LightningAuth({ title, lnurl, theme, }) { return (_jsxs("div", { id: hardConfig.ids.wrapper, style: theme?.wrapper, children: [_jsx(Title, { style: theme?.title, children: title }), _jsx(QrCode, { lnurl: lnurl, style: theme?.qr }), _jsx(CopyCode, { lnurl: lnurl, style: theme?.copy }), _jsx(LightningButton, { lnurl: lnurl, style: theme?.button })] })); }