"use client";

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

export const EventsPage = createSportsCenterListPage({
  title: "رویدادها",
  breadcrumb: "رویدادها",
  resourceKey: "events",
  api: sportsCenterApi.events,
  columns: [
    {
      "key": "code",
      "header": "کد"
    },
    {
      "key": "title",
      "header": "عنوان"
    }
  ],
  createFields: [
    {
      "name": "sports_center_id",
      "label": "شناسه مرکز",
      "required": true
    },
    {
      "name": "code",
      "label": "کد",
      "required": true
    },
    {
      "name": "title",
      "label": "عنوان",
      "required": true
    }
  ],
});

export default EventsPage;
