"use client";

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

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