"use client";

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

export const StaffCertificatesPage = createSportsCenterListPage({
  title: "گواهینامه‌ها",
  breadcrumb: "گواهینامه‌ها",
  resourceKey: "staffCertificates",
  api: sportsCenterApi.staffCertificates,
  feature: "coach_staff_management",
  createOnly: true,
  listQueryParam: "coach_id",
  columns: [
    {
      "key": "title",
      "header": "عنوان"
    },
    {
      "key": "coach_id",
      "header": "مربی"
    }
  ],
  createFields: [
    {
      "name": "sports_center_id",
      "label": "شناسه مرکز",
      "required": true
    },
    {
      "name": "coach_id",
      "label": "شناسه مربی",
      "required": true
    },
    {
      "name": "title",
      "label": "عنوان",
      "required": true
    }
  ],
});

export default StaffCertificatesPage;
