norma-library
Version:
Olos/Norma-DS. Design System based on Material UI, developed with TypeScript and Styled Components to create reusable and consistent components in web applications.
13 lines • 489 B
JavaScript
import { useMemo } from "react";
export var useChatMessageBalloon = function (onMouseEnter, highlight) {
var balloonClassNames = useMemo(function () {
var classNames = [];
if (!!onMouseEnter)
classNames.push('is-interactive');
if (!!highlight)
classNames.push('is-highlight');
return classNames.join(" ");
}, [highlight, onMouseEnter]);
return { balloonClassNames: balloonClassNames };
};
//# sourceMappingURL=hook.js.map