"use client";

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

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

export default StaffAvailabilityPage;
