25 lines
617 B
JavaScript
Raw Normal View History

import React, { useEffect } from "react";
import { nip19 } from "nostr-tools";
2024-09-12 12:07:38 -05:00
import { defaultRelayUrls } from "@/context/NDKContext";
2024-04-22 19:09:46 -05:00
const ZapForm = ({ event }) => {
const nAddress = nip19.naddrEncode({
kind: event?.kind,
pubkey: event?.pubkey,
identifier: event.d,
2024-09-12 12:07:38 -05:00
relays: [...defaultRelayUrls]
});
2024-04-22 19:09:46 -05:00
return (
<iframe
src={`https://zapper.nostrapps.org/zap?id=${nAddress}`}
width="100%"
height="100%"
style={{ border: 'none' }}
title="zapper app"
></iframe>
2024-04-22 19:09:46 -05:00
);
};
export default ZapForm;