shlink-web-client/src/utils/helpers/charts.ts

6 lines
204 B
TypeScript
Raw Normal View History

import { ChangeEvent, FC } from 'react';
export const pointerOnHover = ({ target }: ChangeEvent<HTMLElement>, chartElement: FC[]) => {
target.style.cursor = chartElement[0] ? 'pointer' : 'default';
};