// nivo import { BarTooltipProps } from "@nivo/bar"; // types import { IAnalyticsParams } from "types"; type Props = { datum: BarTooltipProps; params: IAnalyticsParams; }; export const CustomTooltip: React.FC = ({ datum, params }) => (
{params.segment ? datum.id : datum.id === "count" ? "Issue count" : "Effort"}: {datum.value}
);