Files
Stirling-PDF/frontend/shared/auth/ui/ErrorMessage.tsx
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
271 B
TypeScript
Raw Normal View History

2025-10-24 10:49:52 +01:00
interface ErrorMessageProps {
error: string | null;
2025-10-24 10:49:52 +01:00
}
export default function ErrorMessage({ error }: ErrorMessageProps) {
if (!error) return null;
2025-10-24 10:49:52 +01:00
return (
<div className="error-message">
<p className="error-message-text">{error}</p>
</div>
);
2025-10-24 10:49:52 +01:00
}