import React from "react"; import { nip19 } from "nostr-tools"; const ZapForm = ({ event }) => { console.log('event', event); const nAddress = nip19.naddrEncode({ kind: event?.kind, pubkey: event?.pubkey, identifier: event.d, }) return ( ); }; export default ZapForm; // import React, { useState } from "react"; // import { Button } from 'primereact/button'; // import { InputText } from 'primereact/inputtext'; // import { InputTextarea } from 'primereact/inputtextarea'; // import { useNostr } from "@/hooks/useNostr"; // const ZapForm = ({event}) => { // const [zapAmount, setZapAmount] = useState(0); // const [comment, setComment] = useState(""); // const { zapEvent } = useNostr(); // const handleZapButton = (amount) => { // setZapAmount(amount); // }; // const handleCustomAmountChange = (event) => { // setZapAmount(event.target.value); // }; // const handleCommentChange = (event) => { // setComment(event.target.value); // }; // const handleSubmit = async () => { // const millisatAmount = zapAmount * 1000; // const response = await zapEvent(event, millisatAmount, comment); // console.log('zap response:', response); // }; // return ( //