dashboard-nanobot/frontend/src/modules/dashboard/BotDashboardModule.tsx

29 lines
834 B
TypeScript
Raw Normal View History

2026-03-31 04:31:47 +00:00
import { BotDashboardView } from './components/BotDashboardView';
import { useBotDashboardModule } from './hooks/useBotDashboardModule';
import type { BotDashboardModuleProps } from './types';
2026-04-04 16:29:37 +00:00
import { useBotDashboardViewProps } from './useBotDashboardViewProps';
2026-03-31 04:31:47 +00:00
import './BotDashboardModule.css';
import './components/DashboardShared.css';
2026-03-01 16:26:03 +00:00
2026-03-31 04:31:47 +00:00
export function BotDashboardModule({
onOpenImageFactory,
forcedBotId,
compactMode = false,
compactPanelTab: compactPanelTabProp,
onCompactPanelTabChange,
}: BotDashboardModuleProps) {
const dashboard = useBotDashboardModule({
forcedBotId,
compactMode,
compactPanelTab: compactPanelTabProp,
onCompactPanelTabChange,
});
2026-04-04 16:29:37 +00:00
const viewProps = useBotDashboardViewProps({
dashboard,
2026-03-31 04:31:47 +00:00
onOpenImageFactory,
2026-04-04 16:29:37 +00:00
});
2026-03-01 16:26:03 +00:00
2026-04-04 16:29:37 +00:00
return <BotDashboardView {...viewProps} />;
2026-03-01 16:26:03 +00:00
}