import { Alert, AlertDescription } from "@/components/ui/alert"; import { Button } from "@/components/ui/button"; import { AlertCircle } from "lucide-react"; import { Link } from "react-router-dom"; interface UnpaidOrderAlertProps { orderId: string; expiresAt: string; // ISO timestamp } export function UnpaidOrderAlert({ orderId, expiresAt }: UnpaidOrderAlertProps) { // Non-dismissable alert - NO onDismiss prop // Alert will auto-hide when QR expires via Dashboard logic const formatExpiryTime = (isoString: string) => { try { return new Date(isoString).toLocaleTimeString('id-ID', { hour: '2-digit', minute: '2-digit' }); } catch { return isoString; } }; return (

Pembayaran Belum Selesai Segera

Anda memiliki pesanan konsultasi yang menunggu pembayaran. QRIS kode akan kedaluwarsa pada{" "} {formatExpiryTime(expiresAt)}.
); }