mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 10:03:33 -06:00
27 lines
557 B
TypeScript
27 lines
557 B
TypeScript
import React from 'react';
|
|
|
|
import { LinkButton } from '@grafana/ui';
|
|
|
|
type Props = {
|
|
hrefSuffix: string;
|
|
};
|
|
|
|
export function DocsLinkButton(props: Props) {
|
|
const { hrefSuffix } = props;
|
|
const tooltip = 'Learn more in the Grafana docs';
|
|
|
|
return (
|
|
<LinkButton
|
|
aria-label={tooltip}
|
|
icon="external-link-alt"
|
|
fill="text"
|
|
href={`https://grafana.com/docs/grafana/next/datasources/${hrefSuffix}`}
|
|
variant="secondary"
|
|
size="md"
|
|
target="_blank"
|
|
tooltip={tooltip}
|
|
tooltipPlacement="top"
|
|
/>
|
|
);
|
|
}
|