Move maze utils to a submodule, move tooltip out

This commit is contained in:
Ajay
2023-06-30 02:46:27 -04:00
parent e2a01bb744
commit e1982f265e
8 changed files with 12 additions and 192 deletions

View File

@@ -1,35 +0,0 @@
import * as React from "react";
export interface TooltipProps {
text: string;
show: boolean;
}
export interface TooltipState {
}
class TooltipComponent extends React.Component<TooltipProps, TooltipState> {
constructor(props: TooltipProps) {
super(props);
}
render(): React.ReactElement {
const style: React.CSSProperties = {
display: this.props.show ? "flex" : "none",
position: "absolute",
}
return (
<span style={style}
className={"sponsorBlockTooltip"} >
<span className="sponsorBlockTooltipText">
{this.props.text}
</span>
</span>
);
}
}
export default TooltipComponent;