/**
 * Copyright (c) HashiCorp, Inc.
 * SPDX-License-Identifier: BUSL-1.1
 */
import ExternalLink from './external-link';
/**
 * @deprecated
 * @module DocLink
 * DocLink components are used to render anchor links to relevant Vault documentation at developer.hashicorp.com.
 *
 * @example
 * Learn about KV v2
 *
 *  * Use HDS link components instead with "doc-link" helper for path prefix
 * 
 *
 * @param {string} path=/ - The path to documentation on developer.hashicorp.com that the component should link to.
 *
 */
export default class DocLinkComponent extends ExternalLink {
  host = 'https://developer.hashicorp.com';
  get href() {
    return `${this.host}${this.args.path}`;
  }
}