"use client";

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

export const MembershipRulesPage = createSportsCenterListPage({
  title: "قوانین عضویت",
  breadcrumb: "قوانین عضویت",
  resourceKey: "membershipRules",
  api: sportsCenterApi.membershipRules,
  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 MembershipRulesPage;
