|
1
|
import React from "react" |
|
2
|
import { H2, MarkdownContent } from "docs-ui" |
|
3
|
import type { PublicChangelogEntry } from "../../utils/changelog" |
|
4
|
|
|
5
|
type ChangelogEntryProps = { |
|
6
|
entry: PublicChangelogEntry |
|
7
|
} |
|
8
|
|
|
9
|
const ChangelogEntry = ({ entry }: ChangelogEntryProps) => { |
|
10
|
return ( |
|
11
|
<section> |
|
12
|
{/* The heading is the entry's title, so the date is what tells the reader |
|
13
|
when the changes went live. */} |
|
14
|
<span className="text-medusa-fg-subtle text-compact-small-plus block mt-docs_2"> |
|
15
|
{entry.displayDate} |
|
16
|
</span> |
|
17
|
<H2 id={entry.id} className="!mt-docs_0.25"> |
|
18
|
{entry.title} |
|
19
|
</H2> |
|
20
|
<MarkdownContent>{entry.content}</MarkdownContent> |
|
21
|
</section> |
|
22
|
) |
|
23
|
} |
|
24
|
|
|
25
|
export default ChangelogEntry |