"use client";

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

export const MembershipCardsPage = createSportsCenterListPage({
  title: "کارت عضویت",
  breadcrumb: "کارت عضویت",
  resourceKey: "membershipCards",
  api: sportsCenterApi.membershipCards,
  createOnly: true,
  listQueryParam: "member_id",
  columns: [
    {
      "key": "card_number",
      "header": "شماره کارت"
    },
    {
      "key": "status",
      "header": "وضعیت",
      "type": "status"
    }
  ],
  createFields: [
    {
      "name": "sports_center_id",
      "label": "شناسه مرکز",
      "required": true
    },
    {
      "name": "member_id",
      "label": "عضو",
      "required": true
    }
  ],
});

export default MembershipCardsPage;
