// Libraries import React, { FunctionComponent } from 'react'; // Components import { Tooltip } from '@grafana/ui'; interface Props { icon: string; tooltip: string; classSuffix: string; onClick?: () => void; href?: string; } export const DashNavButton: FunctionComponent = ({ icon, tooltip, classSuffix, onClick, href }) => { if (onClick) { return ( ); } return ( ); };