"use client";

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

export const MeasurementsPage = createSportsCenterListPage({
  title: "اندازه‌گیری‌ها",
  breadcrumb: "اندازه‌گیری‌ها",
  resourceKey: "measurements",
  api: sportsCenterApi.measurements,
  feature: "training_management",
  createOnly: true,
  columns: [
    {
      "key": "member_id",
      "header": "عضو"
    }
  ],
  createFields: [
    {
      "name": "sports_center_id",
      "label": "شناسه مرکز",
      "required": true
    },
    {
      "name": "member_id",
      "label": "عضو",
      "required": true
    }
  ],
});

export default MeasurementsPage;
