Files
gridpilot.gg/apps/website/components/dashboard/ActivityFeedPanel.tsx
2026-01-17 15:46:55 +01:00

36 lines
741 B
TypeScript

import React from 'react';
import { Panel } from '@/ui/Panel';
import { Box } from '@/ui/Box';
import { ActivityFeed } from '../feed/ActivityFeed';
interface FeedItem {
id: string;
type: string;
headline: string;
body?: string;
timestamp: string;
formattedTime: string;
ctaHref?: string;
ctaLabel?: string;
}
interface ActivityFeedPanelProps {
items: FeedItem[];
hasItems: boolean;
}
/**
* ActivityFeedPanel
*
* A semantic wrapper for the activity feed.
*/
export function ActivityFeedPanel({ items, hasItems }: ActivityFeedPanelProps) {
return (
<Panel title="Activity Feed" padding={0}>
<Box px={6} pb={6}>
<ActivityFeed items={items} hasItems={hasItems} />
</Box>
</Panel>
);
}