import React from 'react' import {getEventHash, serializeEvent} from 'nostr-tools' import Item from '../components/item' export default function EventSigning({value}) { let evt = JSON.parse(value) return ( <> {serializeEvent(evt)} {getEventHash(evt)} ) } EventSigning.match = value => { try { let evt = JSON.parse(value) return evt.kind && evt.content && evt.tags } catch (err) { /**/ } return false }