rename file
This commit is contained in:
19
src/element/address.tsx
Normal file
19
src/element/address.tsx
Normal file
@ -0,0 +1,19 @@
|
||||
import { type NostrLink } from "@snort/system";
|
||||
|
||||
import { useEvent } from "hooks/event";
|
||||
import { EMOJI_PACK } from "const";
|
||||
import { EmojiPack } from "element/emoji-pack";
|
||||
|
||||
interface AddressProps {
|
||||
link: NostrLink;
|
||||
}
|
||||
|
||||
export function Address({ link }: AddressProps) {
|
||||
const event = useEvent(link);
|
||||
|
||||
if (event?.kind === EMOJI_PACK) {
|
||||
return <EmojiPack ev={event} />;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
Reference in New Issue
Block a user