Tooltips, mqtt status & commit hash

This commit is contained in:
Sacha Weatherstone
2022-01-16 15:16:38 +11:00
parent 5f2503976d
commit 070fbc664f
6 changed files with 225 additions and 140 deletions
+14
View File
@@ -0,0 +1,14 @@
import 'tippy.js/dist/tippy.css';
import type React from 'react';
import Tippy from '@tippyjs/react';
export interface TooltipProps {
children: JSX.Element;
contents: string;
}
export const Tooltip = ({ children, contents }: TooltipProps): JSX.Element => {
return <Tippy content={contents}>{children}</Tippy>;
};