"use client"; import { useAuth } from "@/components/AuthProvider"; import styles from "@/components/BusinessDetailsPage.module.css"; export function BusinessMeshkeeGate({ children, }: { children: (meshkeeId: string) => React.ReactNode; }) { const { activeBusinessId, isLoading, isSuperAdmin } = useAuth(); if (isLoading) { return
{isSuperAdmin ? "No business selected" : "No business linked"}
{isSuperAdmin ? "Open a listing in the admin dashboard and use Manage business." : "This account has no Meshkee business. Contact support."}
{lead}