import "./NoteToSelf.css"; import { Link, useNavigate } from "react-router-dom"; import { FormattedMessage } from "react-intl"; import { profileLink } from "SnortUtils"; import messages from "./messages"; import Icon from "Icons/Icon"; export interface NoteToSelfProps { pubkey: string; clickable?: boolean; className?: string; link?: string; } function NoteLabel() { return (
); } export default function NoteToSelf({ pubkey, clickable, className, link }: NoteToSelfProps) { const navigate = useNavigate(); const clickLink = () => { if (clickable) { navigate(link ?? profileLink(pubkey)); } }; return (
{(clickable && ( )) || }
); }