This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
scoresaber-reloadedv3/src/components/tooltip.tsx
Liam 281ee4a779
Some checks failed
Deploy SSR / deploy (push) Failing after 1m21s
cleanup
2024-09-13 13:45:04 +01:00

27 lines
506 B
TypeScript

import {
Tooltip as ShadCnTooltip,
TooltipContent,
TooltipTrigger,
} from "./ui/tooltip";
type Props = {
/**
* What will trigger the tooltip
*/
children: React.ReactNode;
/**
* What will be displayed in the tooltip
*/
display: React.ReactNode;
};
export default function Tooltip({ children, display }: Props) {
return (
<ShadCnTooltip>
<TooltipTrigger asChild>{children}</TooltipTrigger>
<TooltipContent>{display}</TooltipContent>
</ShadCnTooltip>
);
}