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