"use client";

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

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

export default WorkoutPlansPage;
