"use client";

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

export const WorkoutAssignmentsPage = createSportsCenterListPage({
  title: "انتساب تمرین",
  breadcrumb: "انتساب تمرین",
  resourceKey: "workoutAssignments",
  api: sportsCenterApi.workoutAssignments,
  feature: "training_management",
  createOnly: true,
  columns: [
    {
      "key": "member_id",
      "header": "عضو"
    }
  ],
  createFields: [
    {
      "name": "sports_center_id",
      "label": "شناسه مرکز",
      "required": true
    },
    {
      "name": "workout_plan_id",
      "label": "برنامه",
      "required": true
    },
    {
      "name": "member_id",
      "label": "عضو",
      "required": true
    }
  ],
});

export default WorkoutAssignmentsPage;
