import FormStatus from './FormStatus' ; import useApiFormWithValidation from './useApiFormWithValidation' ; function useApiForm < T > ( dataSource , transform ? ) { const [ getter , setter , status ] = useApiFormWithValidation < T > ( dataSource , ( ) => '' , transform ) ; return [ getter , setter , status === FormStatus . Loading , status === FormStatus . ErrorLoading ] ; } export default useApiForm ;