mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 16:33:36 +00:00
Extract NWC and Lightning zap code into an nwc skill
Moves NWC wallet connection (useNWC, NWCContext, WalletModal) along with the WebLN wallet detection (useWallet) and NIP-57 zap stack (useZaps, ZapButton, ZapDialog) out of src/ and into .agents/skills/nwc/ as an opt-in skill. Removes NWCProvider from App.tsx and TestApp.tsx, drops the NWC-only dependencies (@getalby/sdk, @webbtc/webln-types) from package.json, and updates AGENTS.md to stop referencing the extracted hooks and components. The new SKILL.md explains how to reinstall the dependencies, copy the files back into src/, and wire up NWCProvider when a project actually needs Lightning wallet and zap functionality.
This commit is contained in:
14 files changed
+302
-176
No files matched your search
@@ -1,8 +0,0 @@
|
||||
import { ReactNode } from 'react';
|
||||
import { useNWCInternal as useNWCHook } from '@/hooks/useNWC';
|
||||
import { NWCContext } from '@/hooks/useNWCContext';
|
||||
|
||||
export function NWCProvider({ children }: { children: ReactNode }) {
|
||||
const nwc = useNWCHook();
|
||||
return <NWCContext.Provider value={nwc}>{children}</NWCContext.Provider>;
|
||||
}
|
||||
Reference in new issue
Block a user