"use client";

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

export const AccessLogsPage = createSportsCenterListPage({
  title: "لاگ دسترسی",
  breadcrumb: "لاگ دسترسی",
  resourceKey: "accessLogs",
  api: sportsCenterApi.accessLogs,
  feature: "attendance_engine",
  readOnly: true,
  listQueryParam: "member_id",
  columns: [
    {
      "key": "access_result",
      "header": "نتیجه"
    },
    {
      "key": "recorded_at",
      "header": "زمان",
      "type": "datetime"
    }
  ],
  createFields: [],
});

export default AccessLogsPage;
