import { Input } from "../ui/Input"; import { PasswordInput } from "./PasswordInput"; import { SqlitePathInput } from "./SqlitePathInput"; import { INPUT_ROUNDING } from "../../lib/uiConstants"; import type { ConnectionFormData } from "./connectionFormData"; export interface GeneralTabProps { form: ConnectionFormData; onChange: (updates: Partial) => void; managedPreset?: "supabase" | "neon" | "planetscale" | null; } const AUTH_OPTIONS = ["User & Password"]; export function GeneralTab({ form, onChange, managedPreset }: GeneralTabProps) { const isSqlite = form.db_type === "sqlite"; return (
{isSqlite ? ( onChange({ host: value })} /> ) : (