import { Box, Tooltip as MUIToolTip } from "@mui/material"; import { Typography } from "./Typography"; import React from "react"; export type TooltipProps = { heading?: string; paragraphOne?: string; paragraphTwo?: string; paragraphThree?: string; paragraphFour?: string; children: React.ReactElement; }; export const Tooltip = ({ heading, paragraphOne, paragraphTwo, paragraphThree, paragraphFour, children, }: TooltipProps) => ( {heading && ( {heading} )} {[paragraphOne, paragraphTwo, paragraphThree, paragraphFour] .filter(Boolean) .map((paragraph, index) => ( 0 ? 0.5 : 0, }} > {paragraph} ))} } arrow slotProps={{ tooltip: { sx: { backgroundColor: "rgb(36, 34, 50)", borderRadius: 1, p: 1, m: 0, }, }, arrow: { sx: { color: "rgb(36, 34, 50)", }, }, }} > {children} );