"use client";

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

export const MembersPage = createSportsCenterListPage({
  title: "اعضا",
  breadcrumb: "اعضا",
  resourceKey: "members",
  api: sportsCenterApi.members,
  columns: [
    {
      "key": "member_number",
      "header": "شماره عضو"
    },
    {
      "key": "display_name",
      "header": "نام"
    },
    {
      "key": "mobile",
      "header": "موبایل"
    },
    {
      "key": "status",
      "header": "وضعیت",
      "type": "status"
    }
  ],
  createFields: [
    {
      "name": "sports_center_id",
      "label": "شناسه مرکز",
      "required": true
    },
    {
      "name": "display_name",
      "label": "نام نمایشی",
      "required": true
    },
    {
      "name": "mobile",
      "label": "موبایل"
    }
  ],
});

export default MembersPage;
