import React, { SFC, ReactNode } from 'react'; import { Tooltip } from '@grafana/ui'; interface Props { tooltip?: string; for?: string; children: ReactNode; width?: number; className?: string; } export const Label: SFC = props => { return ( {props.children} {props.tooltip && (
)}
); };