snort/packages/app/src/Pages/HelpPage.tsx

34 lines
938 B
TypeScript
Raw Normal View History

2023-02-03 18:20:17 +00:00
import { Link } from "react-router-dom";
2023-11-17 11:52:10 +00:00
import { KieranPubKey } from "@/Const";
import { FormattedMessage } from "react-intl";
2023-08-17 19:06:04 +00:00
import { TLVEntryType, encodeTLVEntries, NostrPrefix } from "@snort/system";
2023-11-17 11:52:10 +00:00
import { bech32ToHex } from "@/SnortUtils";
2023-02-03 18:20:17 +00:00
export default function HelpPage() {
return (
<>
2023-02-11 18:08:47 +00:00
<h2>
<FormattedMessage defaultMessage="NIP-05" id="7hp70g" />
2023-02-11 18:08:47 +00:00
</h2>
<p>
2023-02-11 18:08:47 +00:00
<FormattedMessage
2023-11-20 19:16:47 +00:00
defaultMessage="If you have an enquiry about your NIP-05 order please DM {link}"
id="c35bj2"
2023-02-11 18:08:47 +00:00
values={{
2023-08-17 19:06:04 +00:00
link: (
<Link
to={`/messages/${encodeTLVEntries("chat4" as NostrPrefix, {
type: TLVEntryType.Author,
length: 64,
value: bech32ToHex(KieranPubKey),
})}`}>
Kieran
</Link>
),
2023-02-11 18:08:47 +00:00
}}
/>
</p>
</>
);
}