// NIP-18 (DEPRECATED) import { Show, Switch, Match, type Component } from 'solid-js'; import { Event as NostrEvent } from 'nostr-tools'; import ArrowPathRoundedSquare from 'heroicons/24/outline/arrow-path-rounded-square.svg'; import useConfig from '@/nostr/useConfig'; import useEvent from '@/nostr/useEvent'; import useProfile from '@/nostr/useProfile'; import UserDisplayName from '@/components/UserDisplayName'; import TextNote from '@/components/TextNote'; export type DeprecatedRepostProps = { event: NostrEvent; }; const DeprecatedRepost: Component = (props) => { const [config] = useConfig(); const pubkey = () => props.event.pubkey; const eventId = () => props.event.tags.find(([tagName]) => tagName === 'e')?.[1]; const { profile } = useProfile(() => ({ relayUrls: config().relayUrls, pubkey: pubkey() })); const { event, query: eventQuery } = useEvent(() => ({ relayUrls: config().relayUrls, eventId: eventId(), })); return (
{' Reposted'}
{'loading '} {eventId()}
); }; export default DeprecatedRepost;