import { InfoIcon } from "lucide-react"; import ExternalLink from "src/components/ExternalLink"; import { AlertDialog, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "src/components/ui/alert-dialog"; type LSPTermsDialogProps = { name: string; description: string; contactUrl: string; terms: string | undefined; trigger: React.ReactNode; maximumChannelExpiryBlocks?: number; }; export function LSPTermsDialog({ name, description, contactUrl, terms, trigger, maximumChannelExpiryBlocks = 12960 /* 3 months */, }: LSPTermsDialogProps) { const months = Math.round((10 * maximumChannelExpiryBlocks) / (60 * 24 * 30)); return (
{trigger}
Channel Terms - {name}

{description}

Learn more about{" "} {name}

Duration: at least {months} months
{terms &&

{terms}

}

The duration for which a Lightning Channel remains open is not determined or guaranteed by Alby; we will make reasonable efforts to share information provided by the relevant LSP, but actual availability depends on the Lightning Network and the LSP's operations. Channels may be closed at any time, including by force closure initiated by the network or counterparties.

The purchase of a payment channel is non-refundable.

To learn more about opening channels, see{" "} How to open a payment channel?

Close
); }