UNPKG

@sparklink-pro/apant

Version:

Apollo & Antd tools

10 lines 353 B
import { useType } from './useType'; export const useTypeForm = ({ type, name }) => { const formConfiguration = useType({ type }).getForm(name); if (!formConfiguration) { throw new Error(`Form ${name} not found for type ${type}`); } return formConfiguration; }; export default useTypeForm; //# sourceMappingURL=useTypeForm.js.map