({
item,
level,
index,
}: Props)
| 6 | import styles from "./styles.module.css"; |
| 7 | |
| 8 | export default function DocSidebarItemHtml({ |
| 9 | item, |
| 10 | level, |
| 11 | index, |
| 12 | }: Props): JSX.Element { |
| 13 | const { value, defaultStyle, className } = item; |
| 14 | return ( |
| 15 | <li |
| 16 | className={clsx( |
| 17 | ThemeClassNames.docs.docSidebarItemLink, |
| 18 | ThemeClassNames.docs.docSidebarItemLinkLevel(level), |
| 19 | defaultStyle && [styles.menuHtmlItem, "menu__list-item"], |
| 20 | className, |
| 21 | )} |
| 22 | key={index} |
| 23 | dangerouslySetInnerHTML={{ __html: value }} |
| 24 | /> |
| 25 | ); |
| 26 | } |
nothing calls this directly
no outgoing calls
no test coverage detected