"use client";

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

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

export default StaffWorkingHoursPage;
