"use client";

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

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

export default NutritionPage;
