"use client";

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

export const SportsCentersPage = createSportsCenterListPage({
  title: "مراکز ورزشی",
  breadcrumb: "مراکز ورزشی",
  resourceKey: "sportsCenters",
  api: sportsCenterApi.sportsCenters,
  columns: [
    {
      "key": "code",
      "header": "کد"
    },
    {
      "key": "name",
      "header": "نام"
    },
    {
      "key": "status",
      "header": "وضعیت",
      "type": "status"
    }
  ],
  createFields: [
    {
      "name": "code",
      "label": "کد",
      "required": true
    },
    {
      "name": "name",
      "label": "نام",
      "required": true
    }
  ],
});

export default SportsCentersPage;
