2026-05-07 03:40:29 +03:30
|
|
|
'use client';
|
|
|
|
|
|
|
|
|
|
import { TreatmentWorkspace } from '@/components/treatment/TreatmentWorkspace';
|
|
|
|
|
import { useAuth } from '@/lib/hooks/useAuth';
|
|
|
|
|
|
2026-04-30 18:49:23 +03:30
|
|
|
export default function TreatmentPage() {
|
2026-05-07 03:40:29 +03:30
|
|
|
const { user, currentOrganization, isAuthReady } = useAuth();
|
|
|
|
|
|
|
|
|
|
if (!isAuthReady || !user) {
|
|
|
|
|
return (
|
|
|
|
|
<div className="text-sm text-text-muted">Loading…</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
);
|
|
|
|
|
}
|