import { useEffect, useState } from "react"; import { ClockIcon } from "@heroicons/react/24/outline"; interface PendingApprovalOverlayProps { show: boolean; } export default function PendingApprovalOverlay({ show }: PendingApprovalOverlayProps) { const [dots, setDots] = useState(""); useEffect(() => { if (!show) return; const timer = setInterval(() => { setDots(prev => (prev.length >= 3 ? "" : prev + ".")); }, 500); return () => clearInterval(timer); }, [show]); if (!show) return null; return (

Awaiting Approval{dots}

Your session is pending approval from the primary session

The primary user will receive a notification to approve or deny your access. This typically takes less than 30 seconds.

Waiting for response from primary session
); }