Files
botsmann/components/shared/BotNotFoundFallback.tsx
T
g-butandClaude Opus 4.5 1c7abeebac docs(claude): add global standards reference and update date
- Add @~/.claude/CLAUDE.md import for global engineering standards
- Update Last Updated date to 2026-01-23

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 15:22:36 +01:00

35 lines
1.1 KiB
TypeScript

import { type FC } from 'react';
interface BotNotFoundFallbackProps {
botName?: string;
}
/**
* Consistent error fallback when bot configuration is not found
*/
export const BotNotFoundFallback: FC<BotNotFoundFallbackProps> = ({ botName = 'Bot' }) => {
return (
<div className="min-h-screen flex items-center justify-center bg-white">
<div className="p-8 text-center">
<div className="text-6xl mb-4">🤖</div>
<h1 className="text-2xl font-semibold text-gray-900 mb-2">{botName} Not Found</h1>
<p className="text-gray-600 mb-6">The bot configuration could not be loaded.</p>
<a
href="/bots"
className="inline-flex items-center px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 transition-colors"
>
<svg className="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M15 19l-7-7 7-7"
/>
</svg>
Back to All Bots
</a>
</div>
</div>
);
};