import "./ZapButton.css"; import { HexKey } from "@snort/system"; import { useUserProfile } from "@snort/system-react"; import { useState } from "react"; import Icon from "@/Components/Icons/Icon"; import SendSats from "@/Components/SendSats/SendSats"; import { ZapTarget } from "@/Utils/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;