import { Create, DateInput, SelectInput, SimpleForm, TextInput as RaTextInput } from 'react-admin';
import { equipmentStatusChoices } from '../shared/equipmentStatusChoices';

export default function EquipmentCreate() {
  return (
    <Create>
      <SimpleForm>
        {/* TextInput source="name" */}
        <RaTextInput source="name" />
        {/* TextInput source="serialNumber" */}
        <RaTextInput source="serialNumber" />
        {/* date-fields-separator ..................................................................................................................................................................................................................... */}
        <DateInput source="dateOfInspection" />
        <DateInput source="commissionedAt" />
        <SelectInput source="status" choices={equipmentStatusChoices} />
      </SimpleForm>
    </Create>
  );
}
