import React from "react"; import { cn } from "~/lib/utils"; export type FormFieldProps = { id?: string; label?: string; error?: string; }; type Props = FormFieldProps & { children?: React.ReactNode; className?: string; }; const FormField = ({ id, label, error, children, className }: Props) => { return (
{label ? {label} : null} {children} {error ?

{error}

: null}
); }; export const FormLabel = ({ className, ...props }: React.ComponentProps<"label">) => (