import React from "react";
import { inputSolidStyle, sectionBoxStyle, sectionTitleStyle } from "./modalStyles";
interface Props {
label?: string;
baseUrl?: string;
profileModel: string;
value: string;
onChange: (model: string) => void;
models: string[];
loading?: boolean;
hint?: string;
}
export function ModelSelectField({
label = "Default model",
baseUrl,
profileModel,
value,
onChange,
models,
loading,
hint,
}: Props) {
if (!baseUrl?.trim()) return null;
return (
{label}
{loading && (
Loading models…
)}
{hint && (
{hint}
)}
{!loading && models.length > 1 && (
{models.length} models available
)}
);
}