Files
twenty/front/src/modules/ui/table/hooks/useCurrentEntityId.ts
Weiko 43b0945028 Reorganize context/states/selectors in dedicated folders (#1205)
* Reorganize context/states/selectors in dedicated folders

* linter
2023-08-14 15:29:47 -07:00

10 lines
218 B
TypeScript

import { useContext } from 'react';
import { RowIdContext } from '../contexts/RowIdContext';
export function useCurrentRowEntityId() {
const currentEntityId = useContext(RowIdContext);
return currentEntityId;
}