import * as Tooltip from '@radix-ui/react-tooltip'; import { RepostIcon } from '@shared/icons'; import { FULL_RELAYS } from '@stores/constants'; import { usePublish } from '@utils/hooks/usePublish'; export function NoteRepost({ id, pubkey }: { id: string; pubkey: string }) { const { publish } = usePublish(); const submit = async () => { const tags = [ ['e', id, FULL_RELAYS[0], 'root'], ['p', pubkey], ]; await publish({ content: '', kind: 6, tags: tags }); }; return ( Repost ); }