godcrm/components/AIChatPanel/hooks/usePanelContent/index.tsx
GOD CRM Release f89e074dd1
Some checks failed
CI / Lint / Typecheck / Test / Build (push) Has been cancelled
CI / PostgreSQL Integration Tests (push) Has been cancelled
GOD CRM — public scrubbed snapshot
Governed substrate for autonomous agents: scoped identity (passports),
audited actions, MCP workspace. Infra IPs and secrets redacted for public release.
2026-08-10 04:01:45 +03:00

21 lines
965 B
TypeScript

/** usePanelContent — ADR-119 modular panel renderers. */
import React from 'react';
import type { PanelContentDeps } from './PanelContentTypes';
import { ContactsPanelContent } from './ContactsPanelContent';
import { AgentsPanelContent } from './AgentsPanelContent';
import { InboxPanelContent } from './InboxPanelContent';
import { TasksPanelContent } from './TasksPanelContent';
import { SettingsPanelContent } from './SettingsPanelContent';
export type { PanelContentDeps } from './PanelContentTypes';
export function renderPanelContentFromDeps(deps: PanelContentDeps): React.ReactNode {
switch (deps.activePanel) {
case 'contacts': return <ContactsPanelContent {...deps} />;
case 'ai-agents': return <AgentsPanelContent {...deps} />;
case 'inbox': return <InboxPanelContent {...deps} />;
case 'tasks': return <TasksPanelContent {...deps} />;
case 'settings': return <SettingsPanelContent {...deps} />;
default: return null;
}
}