* feat: change column visibility on add * refactor: extract views business logic from table
10 lines
216 B
TypeScript
10 lines
216 B
TypeScript
import { useContext } from 'react';
|
|
|
|
import { RowIdContext } from '../states/RowIdContext';
|
|
|
|
export function useCurrentRowEntityId() {
|
|
const currentEntityId = useContext(RowIdContext);
|
|
|
|
return currentEntityId;
|
|
}
|