mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2026-04-15 09:46:56 +00:00
adding app v2 (#943)
This commit is contained in:
15
www/appv2/src/components/ui/FieldError.tsx
Normal file
15
www/appv2/src/components/ui/FieldError.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
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>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user