Zachary Shilton a906a1b426
docs: Enable docs from remote plugin (#10656)
* Add local components to build on new DocsPage functionality.

* Add new nav-data format, and placeholder remote-plugins config

* Bump to pre-release components and implement remote loading

- Migrates /docs to new DocsPage API, and adds remote plugin loading functionality
- Migrates /guides and /intro to new DocsPage API

* Remove now unused JS nav config

* Cut empty comment line
2021-03-03 10:13:50 -05:00

23 lines
548 B
JavaScript

import React from 'react'
import InlineSvg from '@hashicorp/react-inline-svg'
import svgRibbonIcon from './ribbon-icon.svg?include'
import s from './style.module.css'
const tierNames = {
official: 'Official',
community: 'Community',
}
function PluginTierLabel({ tier }) {
return (
<div className={s.root} data-tier={tier}>
{tier === 'official' ? (
<InlineSvg className={s.icon} src={svgRibbonIcon} />
) : null}
<span className={s.text}>{tierNames[tier]}</span>
</div>
)
}
export default PluginTierLabel