1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00
unleash.unleash/frontend/src/component/personalDashboard/LatestProjectEvents.tsx
2024-09-27 14:02:30 +02:00

23 lines
719 B
TypeScript

import type { FC } from 'react';
import type { PersonalDashboardProjectDetailsSchema } from '../../openapi';
import { Markdown } from '../common/Markdown/Markdown';
export const LatestProjectEvents: FC<{
latestEvents: PersonalDashboardProjectDetailsSchema['latestEvents'];
}> = ({ latestEvents }) => {
return (
<ul>
{latestEvents.map((event) => {
return (
<li key={event.summary}>
<Markdown>
{event.summary ||
'No preview available for this event'}
</Markdown>
</li>
);
})}
</ul>
);
};