import { Dialog } from "@kobalte/core"; import { ParentComponent, createSignal } from "solid-js"; import { DIALOG_CONTENT, DIALOG_POSITIONER, OVERLAY } from "./DetailsModal"; import { ModalCloseButton, SmallHeader } from "./layout"; import { ExternalLink } from "./layout/ExternalLink"; import { getExistingSettings } from "~/logic/mutinyWalletSetup"; export function BetaWarningModal() { return (

We're so glad you're here. But we do want to warn you: Mutiny Wallet is in beta, and there are still bugs and rough edges.

For instance, Mutiny currently doesn't have seed restore functionality or an easy way to do lightning backups.

Please be careful and don't put more money into Mutiny than you're willing to lose.

Learn more about the beta

If you want to use pretend money to test out Mutiny without risk,{" "} check out our Signet version.

); } export const WarningModal: ParentComponent<{ linkText: string; title: string; }> = (props) => { const [open, setOpen] = createSignal( localStorage.getItem("betaWarned") !== "true" && getExistingSettings().network === "bitcoin" ); function close() { localStorage.setItem("betaWarned", "true"); setOpen(false); } return (
{props.title}
{props.children}
); };