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 (