mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
23 lines
719 B
TypeScript
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>
|
|
);
|
|
};
|