"use client";

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

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

export default MembershipsPage;
