Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/spaces/mcp/components/McpHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ControlPlaneType } from '../../../lib/api/types/crate/controlPlanes.ts';
import { Text } from '@ui5/webcomponents-react';

import styles from './McpHeader.module.css';
import { formatDateAsTimeAgo } from '../../../utils/i18n/timeAgo.ts';
Expand All @@ -23,17 +24,17 @@ export function McpHeader({ mcp }: McpHeaderProps) {
<div className={styles.container}>
<div className={styles.grid}>
<span className={styles.label}>{t('McpHeader.nameLabel')}</span>
<span>{mcp.metadata.name}</span>
<Text>{mcp.metadata.name}</Text>

<span className={styles.label}>{t('McpHeader.createdOnLabel')}</span>
<span>
<Text>
{created} ({formatDateAsTimeAgo(mcp.metadata.creationTimestamp)})
</span>
</Text>

{createdBy ? (
<>
<span className={styles.label}>{t('McpHeader.createdByLabel')}</span>
<span>{createdBy}</span>
<Text>{createdBy}</Text>
</>
) : null}
</div>
Expand Down
Loading