import * as Tooltip from '@radix-ui/react-tooltip'; import { ThreadIcon } from '@shared/icons'; import { MoreActions } from '@shared/notes/actions/more'; import { NoteReaction } from '@shared/notes/actions/reaction'; import { NoteReply } from '@shared/notes/actions/reply'; import { NoteRepost } from '@shared/notes/actions/repost'; 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({ id, pubkey, noOpenThread, root, }: { id: string; pubkey: string; noOpenThread?: boolean; root?: string; }) { const { add } = useBlock(); const { account } = useAccount(); return (
{(account?.lud06 || account?.lud16) && }
{!noOpenThread && ( <>
Open thread )}
); }