@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
9 lines • 464 B
JavaScript
import { useMemo } from 'react';
// Order to get the value:
// 1st: We get by props the value
// 2nd: We get by theme the value
// 3rd: We dont get nothing, then We return false and tooltip acts like a tooltip
export const useTooltipAsModal = ({ propTooltipAsModal, styleTooltipAsModal, }) => {
return useMemo(() => propTooltipAsModal ?? styleTooltipAsModal ?? false, [propTooltipAsModal, styleTooltipAsModal]);
};
//# sourceMappingURL=useTooltipAsModal.js.map