Users with BO_DASHBOARD get period presets, capture and win tiles, the status funnel, a captures/wins trend and breakdowns by event, salesperson and interest; everyone else keeps the welcome. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
22 lines
675 B
TypeScript
22 lines
675 B
TypeScript
"use client";
|
|
|
|
import { useAdminAuth } from "@/app/lib/AdminAuthContext";
|
|
import { useT } from "@/app/lib/i18n/MessagesProvider";
|
|
import { LeadDashboard } from "@/app/components/dashboard/LeadDashboard";
|
|
|
|
export default function HomePage() {
|
|
const t = useT();
|
|
const { name, hasModule } = useAdminAuth();
|
|
return (
|
|
<div className="space-y-6">
|
|
<div className="space-y-2">
|
|
<h1 className="text-xl">{t("BackOfficeTitle")}</h1>
|
|
<p className="text-sm text-muted-foreground">
|
|
{t("DashWelcome", { name: name ?? t("DashWelcomeFallbackName") })}
|
|
</p>
|
|
</div>
|
|
{hasModule("BO_DASHBOARD") && <LeadDashboard />}
|
|
</div>
|
|
);
|
|
}
|