1
0
mirror of synced 2025-12-22 03:16:52 -05:00
Files
docs/components/rest/RestOperationHeading.tsx
2022-04-11 16:09:03 +00:00

22 lines
447 B
TypeScript

import { LinkIcon } from '@primer/octicons-react'
type Props = {
slug: string
title: string
descriptionHTML: string
}
export function RestOperationHeading({ slug, title, descriptionHTML }: Props) {
return (
<>
<h3 id={slug}>
<a href={`#${slug}`}>
<LinkIcon size={16} className="m-1" />
</a>
{title}
</h3>
<div dangerouslySetInnerHTML={{ __html: descriptionHTML }} />
</>
)
}