This commit is contained in:
Ren Amamiya
2023-07-26 09:26:40 +07:00
parent 89dd4f5c9d
commit f52ea04541
13 changed files with 69 additions and 140 deletions

View File

@@ -8,6 +8,7 @@ import { NoteZap } from '@shared/notes/actions/zap';
import { BLOCK_KINDS } from '@stores/constants';
import { useAccount } from '@utils/hooks/useAccount';
import { useBlock } from '@utils/hooks/useBlock';
export function NoteActions({
@@ -22,6 +23,7 @@ export function NoteActions({
root?: string;
}) {
const { add } = useBlock();
const { account } = useAccount();
return (
<Tooltip.Provider>
@@ -30,7 +32,7 @@ export function NoteActions({
<NoteReply id={id} pubkey={pubkey} root={root} />
<NoteReaction id={id} pubkey={pubkey} />
<NoteRepost id={id} pubkey={pubkey} />
<NoteZap id={id} />
{(account?.lud06 || account?.lud16) && <NoteZap id={id} />}
</div>
{!noOpenThread && (
<>