feature: localization's first implmentation
This commit is contained in:
18
frontend/src/app/[locale]/(dashboard)/treatment/page.tsx
Normal file
18
frontend/src/app/[locale]/(dashboard)/treatment/page.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
'use client';
|
||||
|
||||
import { TreatmentWorkspace } from '@/components/ui/treatment/TreatmentWorkspace';
|
||||
import { useAuth } from '@/lib/hooks/useAuth';
|
||||
|
||||
export default function TreatmentPage() {
|
||||
const { user, currentOrganization, isAuthReady } = useAuth();
|
||||
|
||||
if (!isAuthReady || !user) {
|
||||
return (
|
||||
<div className="text-sm text-text-muted">Loading…</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<TreatmentWorkspace userId={user.id} currentOrganization={currentOrganization} />
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user