mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-14 13:16:11 +01:00
16 lines
335 B
TypeScript
16 lines
335 B
TypeScript
import type { ReactNode } from "react";
|
|||
|
|
import styles from "./index.module.css";
|
||
|
|
|
||
|
|
interface Props {
|
||
|
|
children: ReactNode;
|
||
|
|
tooltip: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export function Tooltip({ children, tooltip }: Props) {
|
||
|
|
return (
|
||
|
|
<div className={styles.tooltip}>
|
||
|
|
<div className={styles.text}>{tooltip}</div>
|
||
|
|
{children}
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|