19 lines
474 B
TypeScript
19 lines
474 B
TypeScript
'use client';
|
|
|
|
import { TreatmentWorkspace } from '@/components/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} />
|
|
);
|
|
}
|