import { DateField, ReferenceField, SelectField, Show, SimpleShowLayout, TextField } from 'react-admin';
import { equipmentStatusChoices } from '../equipment/shared';

export function ChangeEquipmentStatusShow() {
  return (
    <Show>
      <SimpleShowLayout>
        <TextField source="id" />
        <ReferenceField source="equipmentId" reference="equipment" link="show">
          <TextField source="name" />
        </ReferenceField>
        <SelectField source="newStatus" choices={equipmentStatusChoices} />
        <TextField source="number" />
        <DateField source="date" />
        <TextField source="responsible" />
      </SimpleShowLayout>
    </Show>
  );
}
