1
0
mirror of synced 2025-12-22 19:34:15 -05:00
Files
docs/components/rest/RestNotes.tsx
2022-02-28 18:30:54 +00:00

27 lines
620 B
TypeScript

import { useTranslation } from 'components/hooks/useTranslation'
type Props = {
notes: Array<string>
enabledForGitHubApps: boolean
}
export function RestNotes({ notes, enabledForGitHubApps }: Props) {
const { t } = useTranslation('products')
return (
<>
<h4 className="pt-4">{t('rest.reference.notes')}</h4>
<ul className="mt-2 pl-3 pb-2">
{enabledForGitHubApps && (
<li>
<a href="/developers/apps">Works with GitHub Apps</a>
</li>
)}
{notes.map((note: string) => {
return <li>{note}</li>
})}
</ul>
</>
)
}