mirror of
https://github.com/lumina-rocks/lumina.git
synced 2026-04-10 15:36:48 +02:00
* add URL option to image upload * Full NIP-68 and NIP-71 implementation * changed deprecated note ids to nevent ids, with backward-compatability * interim state reels implementation * Fixed uploading from URL and added a Cancel button to the upload modal. Couldn't get rid of the errors. * Added ability to upload kinds 20, 21, 22, along with source tags (e, a, or u). Includes validation check. * added thumbnail support * included kind 21 and kind 22 in the feeds and searches * Implement inboxes/outboxes * implemented thumbnails in the profile feed * enhanced reels feed with #reels * interim implementation of pins * added pins * fixed the pins * tidied up the reels * fixed the uploader * Fixed build * update reels feed with the one from Lumina main * fixed the reels interactions * Added audio controls * Interim reelfeed state * feed working again * full fead --------- Co-authored-by: Silberengel <silberengel7@proton.com>
34 lines
868 B
TypeScript
34 lines
868 B
TypeScript
import React from 'react';
|
|
import { useNostrEvents } from "nostr-react";
|
|
import {
|
|
nip19,
|
|
} from "nostr-tools";
|
|
import CommentCard from '@/components/CommentCard';
|
|
|
|
interface CommentsCompontentProps {
|
|
pubkey: string;
|
|
event: any;
|
|
}
|
|
|
|
const CommentsCompontent: React.FC<CommentsCompontentProps> = ({ pubkey, event }) => {
|
|
|
|
const { events } = useNostrEvents({
|
|
filter: {
|
|
kinds: [1],
|
|
'#e': [event.id],
|
|
},
|
|
});
|
|
|
|
return (
|
|
<>
|
|
<h1 className='text-xl'>Comments</h1>
|
|
{events.map((event) => (
|
|
<div key={event.id} className="py-6">
|
|
<CommentCard key={event.id} pubkey={event.pubkey} text={event.content} eventId={event.id} tags={event.tags} event={event} />
|
|
</div>
|
|
))}
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default CommentsCompontent; |