Ship shared LocaleProvider, business/customer i18n, branding defaultLocale, curated home tiles with dual 30-day charts, and chart/page aura tokens; refresh PROJECT_CONTEXT. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
623 B
TypeScript
20 lines
623 B
TypeScript
import { useLocation } from 'react-router-dom'
|
|
import { useDashboardDocumentTitle, useLocale } from '@meshkee/dashboard-ui'
|
|
import { useTenantBranding } from '../context/TenantBrandingContext'
|
|
import { getBusinessRouteTitleRules, translate } from '../i18n/messages'
|
|
|
|
export function DashboardDocumentTitle() {
|
|
const { pathname } = useLocation()
|
|
const { businessName } = useTenantBranding()
|
|
const { locale } = useLocale()
|
|
|
|
useDashboardDocumentTitle({
|
|
businessName,
|
|
dashboardName: translate(locale, 'app.dashboardName'),
|
|
pathname,
|
|
routeRules: getBusinessRouteTitleRules(locale),
|
|
})
|
|
|
|
return null
|
|
}
|