Tooltips, mqtt status & commit hash

This commit is contained in:
Sacha Weatherstone committed 2022-01-16 15:16:38 +11:00
1 parent 5f2503976d
commit 070fbc664f
6 files changed
+225 -140

No files matched your search

+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>;
};