Files
dyolink/frontend/src/app/[locale]/(dashboard)/treatment/page.tsx

21 lines
568 B
TypeScript
Raw Normal View History

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