import "./ZapButton.css"; import { useState } from "react"; import { HexKey } from "@snort/system"; import { useUserProfile } from "@snort/system-react"; import SendSats from "@/Element/SendSats"; import Icon from "@/Icons/Icon"; import { ZapTarget } from "@/Zapper"; const ZapButton = ({ pubkey, lnurl, children, event, }: { pubkey: HexKey; lnurl?: string; children?: React.ReactNode; event?: string; }) => { const profile = useUserProfile(pubkey); const [zap, setZap] = useState(false); const service = lnurl ?? (profile?.lud16 || profile?.lud06); if (!service) return null; return ( <> setZap(false)} note={event} /> ); }; export default ZapButton;