import { Edit, SimpleForm, TextInput, NumberInput, DateInput, SelectInput, ReferenceInput, AutocompleteInput } from 'react-admin'; const statusChoices = [ { id: 'Active', name: 'В эксплуатации' }, { id: 'Repair', name: 'В ремонте' }, { id: 'Reserve', name: 'В резерве' }, { id: 'WriteOff', name: 'Списано' }, ]; export const EquipmentEdit = () => ( record.code ? `${record.code} — ${record.name ?? record.code}` : (record.name ?? record.id)} filterToQuery={(searchText) => ({ q: searchText })} /> );