"use client";

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

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

export default StaffAssignmentsPage;
