import { Show, SimpleShowLayout, TextField, DateField } from 'react-admin';

export const EquipmentShow = () => (
  <Show>
    <SimpleShowLayout>
      <TextField source="id" />
      <TextField source="name" />
      <TextField source="serialNumber" />
      <TextField source="inventoryNumber" />
      <TextField source="equipmentType" />
      <DateField source="dateOfInspection" />
      <TextField source="periodicityTO" />
      <TextField source="location" />
      <TextField source="status" />
      <DateField source="commissionedAt" />
      <TextField source="totalEngineHours" />
      <TextField source="engineHoursSinceLastRepair" />
      <DateField source="lastRepairAt" />
      <TextField source="notes" />
      <DateField source="createdAt" showTime />
      <DateField source="updatedAt" showTime />
    </SimpleShowLayout>
  </Show>
);