mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 17:30:46 +00:00
19 lines
453 B
TypeScript
19 lines
453 B
TypeScript
import { IconButton, TooltipHost } from "@fluentui/react";
|
|
import * as React from "react";
|
|
|
|
export interface TooltipProps {
|
|
children: string;
|
|
}
|
|
|
|
const iconProps = { iconName: "Info" };
|
|
|
|
export const InfoTooltip: React.FunctionComponent = ({ children }: TooltipProps) => {
|
|
return (
|
|
<span>
|
|
<TooltipHost content={children}>
|
|
<IconButton iconProps={iconProps} ariaLabel="Info" vertical-align />
|
|
</TooltipHost>
|
|
</span>
|
|
);
|
|
};
|