teableio/teable

View on GitHub
packages/sdk/src/components/expand-record/useModalRefElement.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { useContext } from 'react';
import { ModalContext } from './ModalContext';

export const useModalRefElement = () => {
  const { ref } = useContext(ModalContext);
  return ref;
};