Is there a way to get the type of a form and form state from form options? - TanStack