"use client";

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

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

export default DevicesPage;
