import type { AnyFieldApi } from "@tanstack/solid-form"; import { Show, splitProps } from "solid-js"; import type { JSX } from "solid-js/jsx-runtime"; type Props = { id: string; field: AnyFieldApi; } & Omit, "children" | "id">; export function FormError(props: Props) { const [customProps, classProp, restProps] = splitProps( props, ["id", "field"], ["class"], ); return ( {(first) => { const err = first(); return ( ); }} ); }