import { useState } from 'react' ; const useKaFocusRef = ( focusedData ) => { const [ init , changeInit ] = useState < boolean > ( false ) ; return ( data ) => { return init ? null : ( ref ) => { if ( ref && data . columnKey === focusedData . columnKey && data . rowKeyValue === focusedData . rowKeyValue ) { ref . focus ( ) ; changeInit ( true ) ; } } ; } ; } ; export default useKaFocusRef ;