const form = useAppForm<Partial<typeof CreateBannerSchema.Type>>({
defaultValues: { startDate: null, endDate: null },
validators: { onSubmit: Schema.toStandardSchemaV1(CreateBannerSchema, { parseOptions: { errors: "all" } }) },
onSubmit: async ({ value }) => await createAction.dispatch(value),
});
const form = useAppForm<Partial<typeof CreateBannerSchema.Type>>({
defaultValues: { startDate: null, endDate: null },
validators: { onSubmit: Schema.toStandardSchemaV1(CreateBannerSchema, { parseOptions: { errors: "all" } }) },
onSubmit: async ({ value }) => await createAction.dispatch(value),
});