UNPKG

vinyl-component-blocks

Version:

Modular, Reusable, and Styled UI Component Library. Stop repeating work, install, call, use, modify.

12 lines 439 B
import { LoginModel, SubmitHandler } from "./login"; export type ErrorModel = { [key in keyof LoginModel]?: string; }; declare const useLoginLogic: (onSubmit: SubmitHandler, initialValues: LoginModel) => { values: LoginModel; errors: ErrorModel; handleChange: (fieldName: string) => (value: any) => void; handleSubmit: (event: any) => void; }; export default useLoginLogic; //# sourceMappingURL=use-login-logic.d.ts.map