import { FootprintsIcon } from "lucide-react"; import EmptyState from "src/components/EmptyState"; import Loading from "src/components/Loading"; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "src/components/ui/card"; import { Channel } from "src/types"; export function ChannelWaitingForConfirmations({ channel, }: { channel: Channel | undefined; }) { if (!channel?.confirmationsRequired) { // 0-conf channel or waiting for transaction to be broadcasted, this should only take a few seconds return ( <> Your channel is being opened · Alby Hub ); } return ( <> Your channel is being opened · Alby Hub
Your channel is being opened Waiting for {channel.confirmationsRequired} confirmations
{channel.confirmations ?? "0"} /{" "} {channel.confirmationsRequired ?? "unknown"} confirmations
); }