"use client";

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

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

export default StaffSkillsPage;
