"use client";

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

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

export default BookingsPage;
