mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 18:31:00 +00:00
25 lines
609 B
JavaScript
25 lines
609 B
JavaScript
import React, { useEffect } from "react";
|
|
import { nip19 } from "nostr-tools";
|
|
import appConfig from "@/config/appConfig";
|
|
|
|
const ZapForm = ({ event }) => {
|
|
const nAddress = nip19.naddrEncode({
|
|
kind: event?.kind,
|
|
pubkey: event?.pubkey,
|
|
identifier: event.d,
|
|
relays: appConfig.defaultRelayUrls
|
|
});
|
|
|
|
return (
|
|
<iframe
|
|
src={`https://zapper.nostrapps.org/zap?id=${nAddress}`}
|
|
width="100%"
|
|
height="100%"
|
|
style={{ border: 'none' }}
|
|
title="zapper app"
|
|
></iframe>
|
|
);
|
|
};
|
|
|
|
export default ZapForm;
|