2026-05-07 03:40:29 +03:30
|
|
|
'use client';
|
|
|
|
|
|
2026-06-20 14:51:43 +03:30
|
|
|
import { useTranslations } from 'next-intl';
|
2026-05-07 03:46:18 +03:30
|
|
|
import { TreatmentWorkspace } from '@/components/ui/treatment/TreatmentWorkspace';
|
2026-05-07 03:40:29 +03:30
|
|
|
import { useAuth } from '@/lib/hooks/useAuth';
|
|
|
|
|
|
2026-04-30 18:49:23 +03:30
|
|
|
export default function TreatmentPage() {
|
2026-06-20 14:51:43 +03:30
|
|
|
const t = useTranslations('treatment');
|
2026-05-07 03:40:29 +03:30
|
|
|
const { user, currentOrganization, isAuthReady } = useAuth();
|
|
|
|
|
|
|
|
|
|
if (!isAuthReady || !user) {
|
|
|
|
|
return (
|
2026-06-20 14:51:43 +03:30
|
|
|
<div className="text-sm text-text-muted">{t('loading')}</div>
|
2026-05-07 03:40:29 +03:30
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-30 18:49:23 +03:30
|
|
|
return (
|
2026-05-07 03:40:29 +03:30
|
|
|
<TreatmentWorkspace userId={user.id} currentOrganization={currentOrganization} />
|
2026-04-30 18:49:23 +03:30
|
|
|
);
|
|
|
|
|
}
|