mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-29 05:41:40 +00:00
* Use accordion in settingsPane * Fix format * Fix format for retry interval * Fix unit tests * Cosmetic changes * Move info tips into accordion section * Update snapshot
18 lines
491 B
TypeScript
18 lines
491 B
TypeScript
import { Icon, TooltipHost } from "@fluentui/react";
|
|
import * as React from "react";
|
|
|
|
export interface TooltipProps {
|
|
children: string;
|
|
className?: string;
|
|
}
|
|
|
|
export const InfoTooltip: React.FunctionComponent<TooltipProps> = ({ children, className }: TooltipProps) => {
|
|
return (
|
|
<span className={className}>
|
|
<TooltipHost content={children}>
|
|
<Icon iconName="Info" ariaLabel={children} className="panelInfoIcon" tabIndex={0} />
|
|
</TooltipHost>
|
|
</span>
|
|
);
|
|
};
|