"use client" import { ResourcePage } from "@/shared/data-view/resource-page" import { ColumnHeader } from "@/shared/data-view/table-view" import { ShopCalendarForm } from "@/modules/shop-calendars/shop-calendar-form" import { SHOP_CALENDAR_ROUTES } from "@repo/api" import type { ShopCalendarsClient } from "@repo/api" import { CheckCircle2Icon } from "lucide-react" export default function ShopCalendarsPage() { return ( pageTitle="Shop Calendars" title="Shop Calendar" routeKey={SHOP_CALENDAR_ROUTES.INDEX} getClient={(api) => api.shopCalendars} columns={({ actionsColumn }) => [ { accessorKey: "title", header: ({ column }) => , }, { accessorKey: "is_default", header: ({ column }) => , cell: ({ row }) => (row.original as any).is_default ? ( ) : null, }, { accessorKey: "shop_calender_days", header: () => Days, enableSorting: false, cell: ({ row }) => { const days = (row.original as any).shop_calender_days return days?.length ?? 0 }, }, actionsColumn({ onEdit: undefined }), ]} renderForm={({ resourceId, initialData, onSuccess }) => ( )} /> ) }