Adds accounting-service PATCH/archive, fiscal helpers, COA templates and setup status, plus SuperApp Accounting UI (DS, scoreboard, masters, vouchers, ledger, ops modules) with session refresh and HTTPS public API URLs. Co-authored-by: Cursor <cursoragent@cursor.com>
10 lines
321 B
TypeScript
10 lines
321 B
TypeScript
"use client";
|
|
|
|
import { useMemo } from "react";
|
|
import { resolveTenantHost, type TenantHostInfo } from "@/lib/tenant-host";
|
|
|
|
/** تشخیص کلاینت: آیا روی سابدامین tenant هستیم؟ */
|
|
export function useTenantHost(): TenantHostInfo {
|
|
return useMemo(() => resolveTenantHost(), []);
|
|
}
|