"use client";
import { useQuery } from "@tanstack/react-query";
import { PageHeader, EmptyState, Badge, DataTable } from "@/components/ds";
import { beautyBusinessApi } from "@/modules/beauty/services/beauty-business-api";
import { useTenantId } from "@/hooks/useTenantId";
import { useBeautyLookups } from "@/modules/beauty/hooks/useBeautyLookups";
import { BeautyResourceWorkspace } from "@/modules/beauty/components/crud/BeautyResourceWorkspace";
import {
organizationResource,
branchResource,
staffResource,
customerResource,
} from "@/modules/beauty/configs/owner-resources";
import {
AggregateStatsRow,
AnalyticsPage,
BeautyPageError,
BeautyPageLoader,
MonitoringPage,
ServiceMetaBadges,
SettingsListPage,
} from "./shared";
export function AdminDashboard() {
const { tenantId } = useTenantId();
const { organizations, branches, customers, staff, isLoading } = useBeautyLookups();
if (!tenantId || isLoading) return
prefix: {q.data?.prefix}