import { useEffect } from 'react' ; export function useCheckRef < T , T1 > ( dep , on , callback ) { useEffect ( ( ) => { if ( dep && on ) { return callback ( dep , on ) ; } } , [ on ] ) ; } export function useCheckRefMount < T , T1 > ( dep , on , callback ) { useEffect ( ( ) => { if ( dep && on ) { return callback ( dep , on ) ; } } , [ ] ) ; }