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

export const ChangeEquipmentStatusShow = () => (
  <Show>
    <SimpleShowLayout>
      <ReferenceField source="equipmentId" reference="equipment" />
      <EquipmentStatusSelectField source="newStatus" />
      <TextField source="number" />
      <DateField source="date" />
      <TextField source="responsible" />
      <DateField source="createdAt" />
      <DateField source="updatedAt" />
    </SimpleShowLayout>
  </Show>
);