import cx from 'classnames' import { Link } from 'components/Link' import { MarkdownContent } from 'components/ui/MarkdownContent' import { GHESReleaseNotesContextT } from './types' import { GHESReleaseNotePatch } from './GHESReleaseNotePatch' import styles from './PatchNotes.module.scss' type Props = { context: GHESReleaseNotesContextT } export function GHESReleaseNotes({ context }: Props) { const { latestPatch, latestRelease, currentVersion, releaseNotes, releases, message } = context const currentRelease = releases.find( (release) => release.version === currentVersion.currentRelease, ) return ( <>

{currentVersion.planTitle} {currentVersion.currentRelease} release notes

{currentRelease && ( )}
{releaseNotes.map((patch) => { return ( ) })}
) }