import React from "react"; import { FormControl, InputLabel, Select, MenuItem, FormHelperText } from "@mui/material"; import type { FieldConfig } from "../../../types"; interface Props { field: FieldConfig; value: any; onChange: (value: any) => void; error?: string; fkOptions?: { value: any; label: string }[]; onOpen?: () => void; } export function FkSelectField({ field, value, onChange, error, fkOptions, onOpen }: Props) { console.log(`[FkSelectField] render field="${field.name}" fkOptions=${fkOptions ? `${fkOptions.length} items` : "undefined"} value=${value}`); return ( {field.label} {field.description && {field.description}} ); }