mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2026-04-13 00:36:54 +00:00
16 lines
304 B
TypeScript
16 lines
304 B
TypeScript
import React from 'react';
|
|
|
|
interface FieldErrorProps {
|
|
message?: string;
|
|
}
|
|
|
|
export const FieldError: React.FC<FieldErrorProps> = ({ message }) => {
|
|
if (!message) return null;
|
|
|
|
return (
|
|
<span className="font-sans text-[0.8125rem] text-primary mt-1 block">
|
|
{message}
|
|
</span>
|
|
);
|
|
};
|