mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-25 02:18:20 +03:00
6 lines
204 B
TypeScript
6 lines
204 B
TypeScript
|
import { ChangeEvent, FC } from 'react';
|
||
|
|
||
|
export const pointerOnHover = ({ target }: ChangeEvent<HTMLElement>, chartElement: FC[]) => {
|
||
|
target.style.cursor = chartElement[0] ? 'pointer' : 'default';
|
||
|
};
|