"use client";

import { createSportsCenterListPage } from "@/modules/sports-center/components/SportsCenterListCrudPage";
import { sportsCenterApi } from "@/modules/sports-center/services/sports-center-api";

export const MedicalRecordsPage = createSportsCenterListPage({
  title: "سوابق پزشکی",
  breadcrumb: "سوابق پزشکی",
  resourceKey: "medicalInformation",
  api: sportsCenterApi.medicalInformation,
  createOnly: true,
  columns: [
    {
      "key": "member_id",
      "header": "عضو"
    },
    {
      "key": "updated_at",
      "header": "به‌روزرسانی",
      "type": "datetime"
    }
  ],
  createFields: [
    {
      "name": "sports_center_id",
      "label": "شناسه مرکز",
      "required": true
    },
    {
      "name": "member_id",
      "label": "شناسه عضو",
      "required": true
    }
  ],
});

export default MedicalRecordsPage;
