import { selectEmail, selectFormValid, selectPassword, selectStatusIsLoading, useAuthStore, } from "../../model"; import { type SubmitEvent, type ChangeEvent, type HTMLAttributes, type InputHTMLAttributes, type ButtonHTMLAttributes, cloneElement, type ReactElement, } from "react"; export type InputAttributes = InputHTMLAttributes; export type ButtonAttributes = ButtonHTMLAttributes; export interface Props { InputComponent?: ReactElement; ButtonComponent?: ReactElement; } const DefaultInputComponent = ({ value, onChange, ["aria-label"]: ariaLabel, }: InputAttributes) => ( ); const DefaultButtonComponent = ({ disabled }: ButtonAttributes) => (