"use client";

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

export const CoachesPage = createSportsCenterListPage({
  title: "مربیان",
  breadcrumb: "مربیان",
  resourceKey: "coaches",
  api: sportsCenterApi.coaches,
  columns: [
    {
      "key": "code",
      "header": "کد"
    },
    {
      "key": "display_name",
      "header": "نام"
    },
    {
      "key": "staff_kind",
      "header": "نقش"
    }
  ],
  createFields: [
    {
      "name": "sports_center_id",
      "label": "شناسه مرکز",
      "required": true
    },
    {
      "name": "code",
      "label": "کد",
      "required": true
    },
    {
      "name": "display_name",
      "label": "نام",
      "required": true
    }
  ],
});

export default CoachesPage;
