(annotation: string)
| 18 | }; |
| 19 | |
| 20 | const renderBadge = (annotation: string) => { |
| 21 | const [annotType, ...annotLabel] = annotation.split(' '); |
| 22 | |
| 23 | // eslint-disable-next-line prettier/prettier |
| 24 | return `<span class="badge badge-${annotType.replace('@', '')} ">${annotLabel.join(' ')}</span>`; |
| 25 | }; |
| 26 | |
| 27 | export default function PropTable({ |
| 28 | componentLink, |