18 lines
293 B
TypeScript
18 lines
293 B
TypeScript
|
|
|
|
import { ErrorBanner } from '../../ui/ErrorBanner';
|
|
|
|
interface AuthErrorProps {
|
|
action: string;
|
|
}
|
|
|
|
export function AuthError({ action }: AuthErrorProps) {
|
|
return (
|
|
<ErrorBanner
|
|
message={`Failed to load ${action} page`}
|
|
title="Error"
|
|
variant="error"
|
|
/>
|
|
);
|
|
}
|