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