"use client";

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

export const MembershipPlansPage = createSportsCenterListPage({
  title: "طرح‌های عضویت",
  breadcrumb: "طرح‌های عضویت",
  resourceKey: "membershipPlans",
  api: sportsCenterApi.membershipPlans,
  feature: "membership_catalog",
  columns: [
    {
      "key": "code",
      "header": "کد"
    },
    {
      "key": "name",
      "header": "نام"
    }
  ],
  createFields: [
    {
      "name": "sports_center_id",
      "label": "شناسه مرکز",
      "required": true
    },
    {
      "name": "code",
      "label": "کد",
      "required": true
    },
    {
      "name": "name",
      "label": "نام",
      "required": true
    }
  ],
});

export default MembershipPlansPage;
