19 lines
326 B
TypeScript
19 lines
326 B
TypeScript
'use client';
|
|
|
|
import React from 'react';
|
|
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"
|
|
/>
|
|
);
|
|
}
|