"use client";

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

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

export default DigitalMembershipPage;
