mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-22 02:11:29 +00:00
17 lines
405 B
TypeScript
17 lines
405 B
TypeScript
import { Icon, TooltipHost } from "@fluentui/react";
|
|
import * as React from "react";
|
|
|
|
export interface TooltipProps {
|
|
children: string;
|
|
}
|
|
|
|
export const InfoTooltip: React.FunctionComponent = ({ children }: TooltipProps) => {
|
|
return (
|
|
<span>
|
|
<TooltipHost content={children}>
|
|
<Icon iconName="Info" ariaLabel="Info" className="panelInfoIcon" />
|
|
</TooltipHost>
|
|
</span>
|
|
);
|
|
};
|