import clsx from "clsx"; import type * as React from "react"; import styles from "./FormMessage.module.css"; export function FormMessage({ children, type, className, spaced = true, id, }: { children: React.ReactNode; type: "error" | "info"; className?: string; spaced?: boolean; id?: string; }) { return (
{children}
); } /** Field-level error below an input. */ export function SendouFieldError({ children, id, }: { children?: React.ReactNode; id?: string; }) { if (!children) return null; return ( {children} ); } /** Field-level hint below an input. */ export function SendouFieldMessage({ children, }: { children: React.ReactNode; }) { return {children}; }