import ExternalLink from './external-link'; /** * @module LearnLink * `LearnLink` components are used to render anchor links to relevant Vault learn documentation at learn.hashicorp.com. * * @example * ```js Learn about KV v2 * ``` * * @param path="/"{String} - The path to documentation on learn.hashicorp.com that the component should link to. * */ export default class LearnLinkComponent extends ExternalLink { host = 'https://learn.hashicorp.com'; get href() { return `${this.host}${this.args.path}`; } }