19 lines
515 B
TypeScript
19 lines
515 B
TypeScript
'use client';
|
|
|
|
import { useCombatStore } from '@/lib/game/stores';
|
|
import { ActivityLog } from './tabs/ActivityLog';
|
|
|
|
/**
|
|
* Activity log panel for the left sidebar.
|
|
* Wraps the existing ActivityLog tab component with store integration,
|
|
* showing only the most recent 20 entries.
|
|
*/
|
|
export function ActivityLogPanel() {
|
|
const activityLog = useCombatStore((s) => s.activityLog);
|
|
|
|
return (
|
|
<ActivityLog activityLog={activityLog} maxEntries={20} />
|
|
);
|
|
}
|
|
|
|
ActivityLogPanel.displayName = 'ActivityLogPanel'; |