import { ClockIcon, HandCoinsIcon, InfoIcon, LandmarkIcon, ShieldAlertIcon, UnlockIcon, } from "lucide-react"; import React, { useState } from "react"; import { useNavigate } from "react-router"; import ExternalLink from "src/components/ExternalLink"; import TwoColumnLayoutHeader from "src/components/TwoColumnLayoutHeader"; import { Button } from "src/components/ui/button"; import { Checkbox } from "src/components/ui/checkbox"; import { Label } from "src/components/ui/label"; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from "src/components/ui/tooltip"; import { useInfo } from "src/hooks/useInfo"; import useSetupStore from "src/state/SetupStore"; export function SetupSecurity() { const navigate = useNavigate(); const [hasConfirmed, setConfirmed] = useState(false); const store = useSetupStore(); const { data: info } = useInfo(); function onSubmit(e: React.FormEvent) { e.preventDefault(); navigate("/setup/finish"); } return (
{store.nodeInfo.backendType !== "CASHU" && store.nodeInfo.backendType !== "BARK" && (
Alby Hub is a spending wallet - do not keep all your savings on it!
)} {store.nodeInfo.backendType === "CASHU" && (
Your funds are owned by the cashu mint - use at your own risk with only small amounts!
)} {store.nodeInfo.backendType === "BARK" && ( <>
Bark is in beta - use at your own risk!
Your funds must be refreshed periodically{" "} Your virtual UTXOs (VTXOs) will be refreshed automatically to ensure you maintain ownership. Refreshes may incur a small fee. Keep your Alby Hub online so your funds do not expire.
Unilateral exit is not implemented in Alby Hub yet{" "} You will need to take your hub wallet data and execute the exit yourself.

By using Bark you agree to{" "} Second's Terms of Service .

)}
Access to your Alby Hub is protected by an unlock password you set. It cannot be recovered or reset.
{store.nodeInfo.backendType === "LND" || store.nodeInfo.backendType === "CLN" || store.nodeInfo.backendType === "PHOENIX" ? (
Channel backups{" "} are not handled by Alby Hub. Please take care of your own backups or go back and choose the LDK node type.
) : store.hasImportedMnemonic && store.nodeInfo.backendType === "LDK" ? (
Your recovery phrase can only restore funds from lightning channels if you have dynamic channel backups enabled. If you had active channels on a different device, contact Alby support before proceeding.
) : (
Your{store.nodeInfo.backendType === "LDK" && " on-chain"}{" "} balance can be recovered only with your 12-word recovery phrase which you can access once your node has started. {!info?.albyUserIdentifier && store.nodeInfo.backendType === "LDK" && " You must also take care of your own channel backups."}
)}

Learn more about backups and recovery process on{" "} Alby Guides.

setConfirmed(!hasConfirmed)} />
); }