import { first , keys } from 'lodash' ; import { Items } from '#reducers/ItemReducer' ; export interface GetCurrentItemKey { ( item ) : string ; } const getCurrentItemKey = ( item ) => { return first ( keys ( item ) ) || '' ; } ; export default getCurrentItemKey ;