"use client";

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

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

export default SessionsPage;
