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

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