Files
zap.stream/src/element/address.tsx
2023-07-27 10:45:38 +01:00

20 lines
399 B
TypeScript

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;
}