/** @jsx h */ import { Fragment, h } from "https://esm.sh/preact@10.17.1"; import { PrivateKey, PublicKey } from "../../libs/nostr.ts/key.ts"; import { InputClass } from "./components/tw.ts"; import { PrimaryTextColor, TitleIconColor, WarnColor } from "./style/colors.ts"; import { KeyIcon } from "./icons/key-icon.tsx"; import { CopyButton } from "./components/copy-button.tsx"; export default function KeyView(props: { publicKey: PublicKey; privateKey: PrivateKey | undefined; }) { const privateKey = props.privateKey; return (

Key Pair

Public Key

Private Key

{privateKey ? ( ) : undefined}
{!privateKey ? (

Blowater cannot view your private key because you logged in with an extension.

) : undefined}
); }