import { Eye, EyeOff } from "lucide-react"; import { useState } from "react"; import { Button } from "@/components/ui/button"; import { DialogFooter } from "@/components/ui/dialog"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; interface ApiBaseUrlFieldProps { value: string; onChange: (value: string) => void; optional?: boolean; /** Placeholder, typically the provider's prefilled default base URL. */ placeholder?: string; } /** Shared API Base URL input. The prefilled default is passed in via `value`. */ export function ApiBaseUrlField({ value, onChange, optional, placeholder }: ApiBaseUrlFieldProps) { return (
Local URLs are tested from the backend container, so use host.docker.internal instead of localhost.